summaryrefslogtreecommitdiff
path: root/stm/led.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-21 23:28:03 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-21 23:28:03 +0000
commit2c302563820d18be5fcfed406582ea5edaa6b39f (patch)
treea5449557639fb7d5cf462ec28bcddf4037e4cc46 /stm/led.h
parentd51cfd155c09771a6abb4e7a058522f4677fc7cb (diff)
stm: Clean up main.c; disable libgcc by default.
f2d and d2f functions from libgcc does not work correctly, most likely due to the ABI being incorrect. libgcc disabled for now.
Diffstat (limited to 'stm/led.h')
-rw-r--r--stm/led.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/stm/led.h b/stm/led.h
index c68f3e414..44c68d4eb 100644
--- a/stm/led.h
+++ b/stm/led.h
@@ -1,8 +1,14 @@
typedef enum {
+ // PYBv3
PYB_LED_R1 = 1,
PYB_LED_R2 = 2,
PYB_LED_G1 = 3,
PYB_LED_G2 = 4,
+ // PYBv4
+ PYB_LED_RED = 1,
+ PYB_LED_GREEN = 2,
+ PYB_LED_YELLOW = 3,
+ PYB_LED_BLUE = 4,
//STM32F4DISC
PYB_LED_R = 1,
PYB_LED_G = 2,
@@ -14,4 +20,4 @@ void led_init(void);
void led_state(pyb_led_t led, int state);
void led_toggle(pyb_led_t led);
-mp_obj_t pyb_Led(mp_obj_t led_id);
+MP_DECLARE_CONST_FUN_OBJ(pyb_Led_obj);