aboutsummaryrefslogtreecommitdiffstats
path: root/demos/STM32
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-10-07 14:37:38 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-10-07 14:37:38 +0000
commit6110e63719f73f20a92d9317a2729c58b5d9fea0 (patch)
treee6a816206300b0d5857cf6acec08db95c7349284 /demos/STM32
parent366ed30eea6f25595b19a2438574c4d80d487b89 (diff)
downloadChibiOS-6110e63719f73f20a92d9317a2729c58b5d9fea0.tar.gz
ChibiOS-6110e63719f73f20a92d9317a2729c58b5d9fea0.tar.bz2
ChibiOS-6110e63719f73f20a92d9317a2729c58b5d9fea0.zip
Small improvement.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7385 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/STM32')
-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.*/