aboutsummaryrefslogtreecommitdiff
path: root/stm/led.h
diff options
context:
space:
mode:
authormux2014-01-05 19:38:41 +0200
committermux2014-01-05 19:38:41 +0200
commit50d5420deb5af3568d453e09ef651acbe44799fb (patch)
tree18b244b97ff1765ec7bcb28037cf69b83f1f0bc0 /stm/led.h
parent12e2656472bf53e467c066eda6f3e177a97210ca (diff)
Add Initial Support for STM32F4DISCOVERY Board
* Add a TARGET definition to Makefile (default PYBOARD). * Add support for discovery LEDs in led module. * Add support for discovery user switch in usersw * Add EXTI interrupt handler for discovery user switch on (PA0). * Parameterize led and usrsw modules pins and port. * Issue #83
Diffstat (limited to 'stm/led.h')
-rw-r--r--stm/led.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/stm/led.h b/stm/led.h
index e6d0c30bc..fcbfa1763 100644
--- a/stm/led.h
+++ b/stm/led.h
@@ -3,6 +3,11 @@ typedef enum {
PYB_LED_R2 = 1,
PYB_LED_G1 = 2,
PYB_LED_G2 = 3,
+ //STM32F4DISC
+ PYB_LED_R = 0,
+ PYB_LED_G = 1,
+ PYB_LED_B = 2,
+ PYB_LED_O = 3,
} pyb_led_t;
void led_init(void);