summaryrefslogtreecommitdiffstats
path: root/app/led.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/led.c')
-rw-r--r--app/led.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/led.c b/app/led.c
index 9481b2e..fbe3d11 100644
--- a/app/led.c
+++ b/app/led.c
@@ -3,6 +3,15 @@
static int led=0;
+void led_init(void )
+{
+gpio_set_mode (GPIOB, GPIO_MODE_OUTPUT_2_MHZ,
+ GPIO_CNF_OUTPUT_PUSHPULL, GPIO8);
+ gpio_set_mode (GPIOB, GPIO_MODE_OUTPUT_2_MHZ,
+ GPIO_CNF_OUTPUT_PUSHPULL, GPIO9);
+}
+
+
void led_clear(void)
{
gpio_set(GPIOB,GPIO8);