aboutsummaryrefslogtreecommitdiff
path: root/self-test/led-test.c
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2016-04-11 14:44:44 -0400
committerPaul Selkirk <paul@psgd.org>2016-04-11 14:44:44 -0400
commit79b1ba7104dba52dbfacf11a07305702889f440b (patch)
tree75a08fdc6e3af427e953f319b3fdb0f9dcfdf80e /self-test/led-test.c
parentd5669dac8c7ab2fbf6bd3c7faed7ce050c94ee1a (diff)
Reorganize Makefile and directory structure, because it's messy, and it's about to get messier.
Diffstat (limited to 'self-test/led-test.c')
-rw-r--r--self-test/led-test.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/self-test/led-test.c b/self-test/led-test.c
deleted file mode 100644
index 5e4401f..0000000
--- a/self-test/led-test.c
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Blink the four LEDs on the rev01 board in a pattern.
- */
-#include "stm32f4xx_hal.h"
-#include "stm-init.h"
-#include "stm-led.h"
-
-#define DELAY() HAL_Delay(125)
-
-void toggle_led(uint32_t times, uint32_t led_pin)
-{
- uint32_t i;
-
- for (i = 0; i < times; i++) {
- HAL_GPIO_TogglePin(LED_PORT, led_pin);
- DELAY();
- }
-}
-
-int
-main()
-{
- stm_init();
-
- while (1)
- {
- toggle_led(2, LED_BLUE);
- toggle_led(2, LED_GREEN);
- toggle_led(2, LED_YELLOW);
- toggle_led(2, LED_RED);
- }
-
-}