![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
RoboCup Base Station
Dependencies: mbed mbed-rtos Wireless Drivers
BaseStation.h@4:ec95917c3211, 2014-12-31 (annotated)
- Committer:
- jjones646
- Date:
- Wed Dec 31 22:16:17 2014 +0000
- Revision:
- 4:ec95917c3211
- Parent:
- 2:7fd95eae5731
adding dummy cc1101 support
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jjones646 | 2:7fd95eae5731 | 1 | #ifndef BASE_STATION_H |
jjones646 | 2:7fd95eae5731 | 2 | #define BASE_STATION_H |
jjones646 | 2:7fd95eae5731 | 3 | |
jjones646 | 2:7fd95eae5731 | 4 | #include "mbed.h" |
jjones646 | 2:7fd95eae5731 | 5 | #include "rtos.h" |
jjones646 | 4:ec95917c3211 | 6 | #include "CC1101.h" |
jjones646 | 2:7fd95eae5731 | 7 | |
jjones646 | 2:7fd95eae5731 | 8 | // 7-Segment pins |
jjones646 | 2:7fd95eae5731 | 9 | #define RJ_7_SEG_BIT_3_PIN p17 |
jjones646 | 2:7fd95eae5731 | 10 | #define RJ_7_SEG_BIT_2_PIN p18 |
jjones646 | 2:7fd95eae5731 | 11 | #define RJ_7_SEG_BIT_1_PIN p19 |
jjones646 | 2:7fd95eae5731 | 12 | #define RJ_7_SEG_BIT_0_PIN p20 |
jjones646 | 2:7fd95eae5731 | 13 | #define RJ_7_SEG_DOT_PIN p15 |
jjones646 | 2:7fd95eae5731 | 14 | #define RJ_7_SEG_LATCH_PIN p16 |
jjones646 | 2:7fd95eae5731 | 15 | #define RJ_7_SEG_PINS RJ_7_SEG_BIT_3_PIN, RJ_7_SEG_BIT_2_PIN, RJ_7_SEG_BIT_1_PIN, RJ_7_SEG_BIT_0_PIN |
jjones646 | 2:7fd95eae5731 | 16 | |
jjones646 | 2:7fd95eae5731 | 17 | // Primary Radio LEDs |
jjones646 | 2:7fd95eae5731 | 18 | #define RJ_PRIMARY_RADIO_LED_TX p28 |
jjones646 | 2:7fd95eae5731 | 19 | #define RJ_PRIMARY_RADIO_LED_RX p30 |
jjones646 | 2:7fd95eae5731 | 20 | #define RJ_PRIMARY_RADIO_LED_ERR p29 |
jjones646 | 2:7fd95eae5731 | 21 | #define RJ_PRIMARY_RADIO_LEDS RJ_PRIMARY_RADIO_LED_TX, RJ_PRIMARY_RADIO_LED_RX, RJ_PRIMARY_RADIO_LED_ERR |
jjones646 | 2:7fd95eae5731 | 22 | |
jjones646 | 2:7fd95eae5731 | 23 | // Secondary Radio LEDs |
jjones646 | 2:7fd95eae5731 | 24 | #define RJ_SECONDARY_RADIO_LED_TX p24 |
jjones646 | 2:7fd95eae5731 | 25 | #define RJ_SECONDARY_RADIO_LED_RX p25 |
jjones646 | 2:7fd95eae5731 | 26 | #define RJ_SECONDARY_RADIO_LED_ERR p26 |
jjones646 | 2:7fd95eae5731 | 27 | #define RJ_SECONDARY_RADIO_LEDS RJ_SECONDARY_RADIO_LED_TX, RJ_SECONDARY_RADIO_LED_RX, RJ_SECONDARY_RADIO_LED_ERR |
jjones646 | 2:7fd95eae5731 | 28 | |
jjones646 | 4:ec95917c3211 | 29 | // Primary Radio Control Pins |
jjones646 | 4:ec95917c3211 | 30 | #define RJ_PRIMARY_RADIO_CS_PIN p11 |
jjones646 | 4:ec95917c3211 | 31 | #define RJ_PRIMARY_RADIO_INT_PIN p12 |
jjones646 | 4:ec95917c3211 | 32 | |
jjones646 | 2:7fd95eae5731 | 33 | // RGB Status LED |
jjones646 | 2:7fd95eae5731 | 34 | #define RJ_RGB_LED_RED_PIN p23 |
jjones646 | 2:7fd95eae5731 | 35 | #define RJ_RGB_LED_GREEN_PIN p21 |
jjones646 | 2:7fd95eae5731 | 36 | #define RJ_RGB_LED_BLUE_PIN p22 |
jjones646 | 2:7fd95eae5731 | 37 | #define RJ_RGB_LED_ANNODE p27 |
jjones646 | 2:7fd95eae5731 | 38 | #define RJ_RGB_LED_PINS RJ_RGB_LED_RED_PIN, RJ_RGB_LED_GREEN_PIN, RJ_RGB_LED_BLUE_PIN |
jjones646 | 2:7fd95eae5731 | 39 | |
jjones646 | 4:ec95917c3211 | 40 | // SPI Bus lines |
jjones646 | 4:ec95917c3211 | 41 | #define RJ_SPI_MOSI_PIN p5 |
jjones646 | 4:ec95917c3211 | 42 | #define RJ_SPI_MISO_PIN p6 |
jjones646 | 4:ec95917c3211 | 43 | #define RJ_SPI_SCK_PIN p7 |
jjones646 | 4:ec95917c3211 | 44 | #define RJ_SPI_PINS RJ_SPI_MOSI_PIN, RJ_SPI_MISO_PIN, RJ_SPI_SCK_PIN |
jjones646 | 4:ec95917c3211 | 45 | |
jjones646 | 2:7fd95eae5731 | 46 | #define R 0 |
jjones646 | 2:7fd95eae5731 | 47 | #define G 1 |
jjones646 | 2:7fd95eae5731 | 48 | #define B 2 |
jjones646 | 2:7fd95eae5731 | 49 | |
jjones646 | 2:7fd95eae5731 | 50 | #endif // BASE_STATION_H |