From 2c302563820d18be5fcfed406582ea5edaa6b39f Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 21 Jan 2014 23:28:03 +0000 Subject: 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. --- stm/led.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'stm/led.h') 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); -- cgit v1.2.3