aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
Diffstat (limited to 'demos')
-rw-r--r--demos/ARMCM3-STM32F407-DISCOVERY/main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/demos/ARMCM3-STM32F407-DISCOVERY/main.c b/demos/ARMCM3-STM32F407-DISCOVERY/main.c
index 07e158077..eb2653f32 100644
--- a/demos/ARMCM3-STM32F407-DISCOVERY/main.c
+++ b/demos/ARMCM3-STM32F407-DISCOVERY/main.c
@@ -159,6 +159,7 @@ static void spicb(SPIDriver *spip) {
* a seconds counter.
*/
static WORKING_AREA(waThread1, 128);
+#if 0
static msg_t Thread1(void *arg) {
static uint32_t seconds_counter;
@@ -169,6 +170,19 @@ static msg_t Thread1(void *arg) {
seconds_counter++;
}
}
+#else
+static msg_t Thread1(void *arg) {
+
+ (void)arg;
+ chRegSetThreadName("blinker");
+ while (TRUE) {
+ palSetPad(GPIOD, GPIOD_LED5);
+ chThdSleepMilliseconds(500);
+ palClearPad(GPIOD, GPIOD_LED5);
+ chThdSleepMilliseconds(500);
+ }
+}
+#endif
/*
* Application entry point.