RoboCup Base Station

Dependencies:   mbed mbed-rtos Wireless Drivers

Revision:
2:7fd95eae5731
Child:
4:ec95917c3211
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/BaseStation.h	Wed Dec 31 09:17:06 2014 +0000
@@ -0,0 +1,39 @@
+#ifndef BASE_STATION_H
+#define BASE_STATION_H
+
+#include "mbed.h"
+#include "rtos.h"
+
+// 7-Segment pins
+#define RJ_7_SEG_BIT_3_PIN  p17
+#define RJ_7_SEG_BIT_2_PIN  p18
+#define RJ_7_SEG_BIT_1_PIN  p19
+#define RJ_7_SEG_BIT_0_PIN  p20
+#define RJ_7_SEG_DOT_PIN    p15
+#define RJ_7_SEG_LATCH_PIN  p16
+#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
+
+// Primary Radio LEDs
+#define RJ_PRIMARY_RADIO_LED_TX     p28
+#define RJ_PRIMARY_RADIO_LED_RX     p30
+#define RJ_PRIMARY_RADIO_LED_ERR    p29
+#define RJ_PRIMARY_RADIO_LEDS       RJ_PRIMARY_RADIO_LED_TX, RJ_PRIMARY_RADIO_LED_RX, RJ_PRIMARY_RADIO_LED_ERR
+
+// Secondary Radio LEDs
+#define RJ_SECONDARY_RADIO_LED_TX     p24
+#define RJ_SECONDARY_RADIO_LED_RX     p25
+#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
+
+// RGB Status LED
+#define RJ_RGB_LED_RED_PIN      p23
+#define RJ_RGB_LED_GREEN_PIN    p21
+#define RJ_RGB_LED_BLUE_PIN     p22
+#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
+
+#define R   0
+#define G   1
+#define B   2
+
+#endif  //  BASE_STATION_H