RoboCup Base Station
Dependencies: mbed mbed-rtos Wireless Drivers
Diff: BaseStation.h
- Revision:
- 4:ec95917c3211
- Parent:
- 2:7fd95eae5731
diff -r c3114df544e8 -r ec95917c3211 BaseStation.h --- a/BaseStation.h Wed Dec 31 09:32:08 2014 +0000 +++ b/BaseStation.h Wed Dec 31 22:16:17 2014 +0000 @@ -3,6 +3,7 @@ #include "mbed.h" #include "rtos.h" +#include "CC1101.h" // 7-Segment pins #define RJ_7_SEG_BIT_3_PIN p17 @@ -25,6 +26,10 @@ #define RJ_SECONDARY_RADIO_LED_ERR p26 #define RJ_SECONDARY_RADIO_LEDS RJ_SECONDARY_RADIO_LED_TX, RJ_SECONDARY_RADIO_LED_RX, RJ_SECONDARY_RADIO_LED_ERR +// Primary Radio Control Pins +#define RJ_PRIMARY_RADIO_CS_PIN p11 +#define RJ_PRIMARY_RADIO_INT_PIN p12 + // RGB Status LED #define RJ_RGB_LED_RED_PIN p23 #define RJ_RGB_LED_GREEN_PIN p21 @@ -32,6 +37,12 @@ #define RJ_RGB_LED_ANNODE p27 #define RJ_RGB_LED_PINS RJ_RGB_LED_RED_PIN, RJ_RGB_LED_GREEN_PIN, RJ_RGB_LED_BLUE_PIN +// SPI Bus lines +#define RJ_SPI_MOSI_PIN p5 +#define RJ_SPI_MISO_PIN p6 +#define RJ_SPI_SCK_PIN p7 +#define RJ_SPI_PINS RJ_SPI_MOSI_PIN, RJ_SPI_MISO_PIN, RJ_SPI_SCK_PIN + #define R 0 #define G 1 #define B 2