aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-11-06 09:39:57 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-11-06 09:39:57 +0000
commit9e51498e1196b28e5c073a7505df2ae08f05b59a (patch)
treebe60118f910f187a592eccec92fc12ed5f6a3a29 /demos
parent4f783ee161926a018c71a303dc3106ca36fb1079 (diff)
downloadChibiOS-9e51498e1196b28e5c073a7505df2ae08f05b59a.tar.gz
ChibiOS-9e51498e1196b28e5c073a7505df2ae08f05b59a.tar.bz2
ChibiOS-9e51498e1196b28e5c073a7505df2ae08f05b59a.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3474 35acf78f-673a-0410-8e92-d51de3d6d3f4
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.