summaryrefslogtreecommitdiff
path: root/stm/led.c
diff options
context:
space:
mode:
authorDamien <damien.p.george@gmail.com>2013-10-23 20:39:20 +0100
committerDamien <damien.p.george@gmail.com>2013-10-23 20:39:20 +0100
commit0f6545139b84f3a6ad1dab04652b7646aacc44e7 (patch)
treead06b3b2984351a5aeeb12188594232b67025f15 /stm/led.c
parent8b3a7c2237d74b84eb7ff9fe4b6cd5888545f2af (diff)
Implement simple servo control using PWM.
Diffstat (limited to 'stm/led.c')
-rw-r--r--stm/led.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stm/led.c b/stm/led.c
index 1377a8407..a48ccf5f0 100644
--- a/stm/led.c
+++ b/stm/led.c
@@ -9,7 +9,7 @@
#define PYB_LED_G1_PIN (GPIO_Pin_4)
#define PYB_LED_G2_PIN (GPIO_Pin_5)
-void led_init() {
+void led_init(void) {
// set the output high (so LED is off)
PYB_LED_R_PORT->BSRRL = PYB_LED_R1_PIN;
PYB_LED_R_PORT->BSRRL = PYB_LED_R2_PIN;