aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--demos/STM32/CMSIS-STM32F407-DISCOVERY/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/demos/STM32/CMSIS-STM32F407-DISCOVERY/main.c b/demos/STM32/CMSIS-STM32F407-DISCOVERY/main.c
index e15a570e6..c71c3103b 100644
--- a/demos/STM32/CMSIS-STM32F407-DISCOVERY/main.c
+++ b/demos/STM32/CMSIS-STM32F407-DISCOVERY/main.c
@@ -34,10 +34,14 @@ static void Thread1(void const *arg) {
}
/*
+ * Thread definition block.
+ */
+osThreadDef(Thread1, osPriorityAboveNormal, 1, 128);
+
+/*
* Application entry point.
*/
int main(void) {
- osThreadDef(Thread1, osPriorityAboveNormal, 1, 128);
/* HAL initialization, this also initializes the configured device drivers
and performs the board-specific initializations.*/