summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/led.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-13 10:17:51 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-13 10:17:51 +0000
commit659c19c67c00b156cb6890f926d5cc012d129f24 (patch)
tree303a4e00c9612951c8ab3cfbe926121724173fd1 /stmhal/led.h
parent19438fd30a3184b656221a59062ea32453d0fd16 (diff)
parentf14b92b9e13c9cb9f54a1d740dbea1eeedeccb5b (diff)
downloadmicropython-659c19c67c00b156cb6890f926d5cc012d129f24.tar.gz
micropython-659c19c67c00b156cb6890f926d5cc012d129f24.zip
Merge pull request #342 from dhylands/stmhal-repl
REPL working on UART6 with STMHAL
Diffstat (limited to 'stmhal/led.h')
-rw-r--r--stmhal/led.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/stmhal/led.h b/stmhal/led.h
new file mode 100644
index 0000000000..9e9db16ac3
--- /dev/null
+++ b/stmhal/led.h
@@ -0,0 +1,25 @@
+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,
+ PYB_LED_B = 3,
+ PYB_LED_O = 4,
+} pyb_led_t;
+
+void led_init(void);
+void led_state(pyb_led_t led, int state);
+void led_toggle(pyb_led_t led);
+
+#if 0
+MP_DECLARE_CONST_FUN_OBJ(pyb_Led_obj);
+#endif