fix email
[hackover2013-badge-firmware.git] / badge / pinconfig.h
index 52f05b9..1b4a1b9 100644 (file)
@@ -3,6 +3,33 @@
 
 #include <lpc134x.h>
 
+#ifdef HOB_REV2
+
+#define HOB_BTN_UP        (1, 11)
+#define HOB_BTN_RIGHT     (1,  7)
+#define HOB_BTN_DOWN      (1,  6)
+#define HOB_BTN_LEFT      (1,  5)
+#define HOB_BTN_A         (1,  9)
+#define HOB_BTN_B         (1,  8)
+
+#define HOB_LCD_CS        (3,  0)
+#define HOB_LCD_RST       (3,  1)
+#define HOB_LCD_BACKLIGHT (0,  1)
+
+#define HOB_DATAFLASH_CS  (0,  7)
+
+#define HOB_RADIO_CE      (2,  2)
+#define HOB_RADIO_CS      (2, 10)
+#define HOB_RADIO_IRQ     (2,  9)
+
+#define HOB_USB_CONNECT   (0,  6)
+
+
+#define HOB_LED_LEFT      (2,  8)
+#define HOB_LED_RIGHT     (2,  6)
+
+#else
+
 #define HOB_BTN_UP        (3,  2)
 #define HOB_BTN_RIGHT     (1,  5)
 #define HOB_BTN_DOWN      (1,  6)
@@ -23,6 +50,8 @@
 
 #define HOB_USB_CONNECT   (0,  6)
 
+#endif
+
 #define HOB_PIO0_0 nRESET_PIO0_0
 #define HOB_PIO0_1 PIO0_1
 #define HOB_PIO0_2 PIO0_2
This page took 0.022456 seconds and 4 git commands to generate.