summaryrefslogtreecommitdiffstats
path: root/app/led.c
diff options
context:
space:
mode:
authorfishsoupisgood <github@madingley.org>2020-06-18 13:26:56 +0100
committerfishsoupisgood <github@madingley.org>2020-06-18 13:26:56 +0100
commite41764fceeabb1cdb6a7a299e00f2166a6f6ac32 (patch)
treec58c73d742bf990ec692d61ca8d911dd43fab8c6 /app/led.c
parentf7b7cf9e80200cade938d47527e39034c75b9b6d (diff)
downloadrobs_speedo-e41764fceeabb1cdb6a7a299e00f2166a6f6ac32.tar.gz
robs_speedo-e41764fceeabb1cdb6a7a299e00f2166a6f6ac32.tar.bz2
robs_speedo-e41764fceeabb1cdb6a7a299e00f2166a6f6ac32.zip
moved stm32 into directory added noddy pcb
Diffstat (limited to 'app/led.c')
-rw-r--r--app/led.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/app/led.c b/app/led.c
deleted file mode 100644
index 57baa17..0000000
--- a/app/led.c
+++ /dev/null
@@ -1,42 +0,0 @@
-#include "project.h"
-
-
-#define LED GPIO13
-#define LED_PORT GPIOC
-
-static int led = 0;
-
-void
-led_init (void)
-{
- MAP_OUTPUT_OD (LED);
- SET (LED);
-
-}
-
-
-void
-led_clear (void)
-{
- SET (LED);
- led = 0;
-}
-
-void
-led_set (void)
-{
- CLEAR (LED);
- led = MS_TO_TICKS (200);
-}
-
-void
-led_tick (void)
-{
- if (led) {
- led--;
-
- if (!led)
- led_clear();
- }
-
-}