diff --git a/targets/CMSIS-OS/ChibiOS/MBN_QUAIL/nanoBooter/main.c b/targets/CMSIS-OS/ChibiOS/MBN_QUAIL/nanoBooter/main.c index de5b71fb32..23d8223015 100644 --- a/targets/CMSIS-OS/ChibiOS/MBN_QUAIL/nanoBooter/main.c +++ b/targets/CMSIS-OS/ChibiOS/MBN_QUAIL/nanoBooter/main.c @@ -10,6 +10,7 @@ #include #include #include +#include #include void BlinkerThread(void const * argument) @@ -39,9 +40,6 @@ osThreadDef(ReceiverThread, osPriorityHigh, 3072, "ReceiverThread"); // Application entry point. int main(void) { - osThreadId blinkerThreadId; - osThreadId receiverThreadId; - // HAL initialization, this also initializes the configured device drivers // and performs the board-specific initializations. halInit(); @@ -70,10 +68,10 @@ int main(void) { usbConnectBus(serusbcfg.usbp); // Creates the blinker thread, it does not start immediately. - blinkerThreadId = osThreadCreate(osThread(BlinkerThread), NULL); + osThreadCreate(osThread(BlinkerThread), NULL); // create the receiver thread - receiverThreadId = osThreadCreate(osThread(ReceiverThread), NULL); + osThreadCreate(osThread(ReceiverThread), NULL); // start kernel, after this main() will behave like a thread with priority osPriorityNormal osKernelStart(); diff --git a/targets/CMSIS-OS/ChibiOS/NETDUINO3_WIFI/nanoBooter/main.c b/targets/CMSIS-OS/ChibiOS/NETDUINO3_WIFI/nanoBooter/main.c index 32d17329ff..c7ec6e5e2a 100644 --- a/targets/CMSIS-OS/ChibiOS/NETDUINO3_WIFI/nanoBooter/main.c +++ b/targets/CMSIS-OS/ChibiOS/NETDUINO3_WIFI/nanoBooter/main.c @@ -10,6 +10,7 @@ #include #include #include +#include #include void BlinkerThread(void const * argument) @@ -48,9 +49,6 @@ osThreadDef(ReceiverThread, osPriorityHigh, 3072, "ReceiverThread"); // Application entry point. int main(void) { - osThreadId blinkerThreadId; - osThreadId receiverThreadId; - // HAL initialization, this also initializes the configured device drivers // and performs the board-specific initializations. halInit(); @@ -79,10 +77,10 @@ int main(void) { usbConnectBus(serusbcfg.usbp); // Creates the blinker thread, it does not start immediately. - blinkerThreadId = osThreadCreate(osThread(BlinkerThread), NULL); + osThreadCreate(osThread(BlinkerThread), NULL); // create the receiver thread - receiverThreadId = osThreadCreate(osThread(ReceiverThread), NULL); + osThreadCreate(osThread(ReceiverThread), NULL); // start kernel, after this main() will behave like a thread with priority osPriorityNormal osKernelStart(); diff --git a/targets/CMSIS-OS/ChibiOS/ST_NUCLEO144_F746ZG/nanoBooter/main.c b/targets/CMSIS-OS/ChibiOS/ST_NUCLEO144_F746ZG/nanoBooter/main.c index 4681add658..9f358ce3a8 100644 --- a/targets/CMSIS-OS/ChibiOS/ST_NUCLEO144_F746ZG/nanoBooter/main.c +++ b/targets/CMSIS-OS/ChibiOS/ST_NUCLEO144_F746ZG/nanoBooter/main.c @@ -11,6 +11,7 @@ #include #include #include +#include #include void BlinkerThread(void const * argument) @@ -35,9 +36,6 @@ osThreadDef(ReceiverThread, osPriorityHigh, 3072, "ReceiverThread"); // Application entry point. int main(void) { - osThreadId blinkerThreadId; - osThreadId receiverThreadId; - // HAL initialization, this also initializes the configured device drivers // and performs the board-specific initializations. halInit(); @@ -81,10 +79,10 @@ int main(void) { usbConnectBus(serusbcfg.usbp); // Creates the blinker thread, it does not start immediately. - blinkerThreadId = osThreadCreate(osThread(BlinkerThread), NULL); + osThreadCreate(osThread(BlinkerThread), NULL); // create the receiver thread - receiverThreadId = osThreadCreate(osThread(ReceiverThread), NULL); + osThreadCreate(osThread(ReceiverThread), NULL); // start kernel, after this main() will behave like a thread with priority osPriorityNormal osKernelStart(); diff --git a/targets/CMSIS-OS/ChibiOS/ST_NUCLEO64_F091RC/nanoBooter/main.c b/targets/CMSIS-OS/ChibiOS/ST_NUCLEO64_F091RC/nanoBooter/main.c index cc41b555bf..6d8422533d 100644 --- a/targets/CMSIS-OS/ChibiOS/ST_NUCLEO64_F091RC/nanoBooter/main.c +++ b/targets/CMSIS-OS/ChibiOS/ST_NUCLEO64_F091RC/nanoBooter/main.c @@ -10,6 +10,7 @@ #include #include #include +#include #include void BlinkerThread(void const * argument) @@ -33,9 +34,6 @@ osThreadDef(ReceiverThread, osPriorityHigh, 3072, "ReceiverThread"); // Application entry point. int main(void) { - osThreadId blinkerThreadId; - osThreadId receiverThreadId; - // HAL initialization, this also initializes the configured device drivers // and performs the board-specific initializations. halInit(); @@ -71,10 +69,10 @@ int main(void) { palSetPadMode(GPIOA, 3, PAL_MODE_ALTERNATE(1)); // USART2 RX // Creates the blinker thread, it does not start immediately. - blinkerThreadId = osThreadCreate(osThread(BlinkerThread), NULL); + osThreadCreate(osThread(BlinkerThread), NULL); // create the receiver thread - receiverThreadId = osThreadCreate(osThread(ReceiverThread), NULL); + osThreadCreate(osThread(ReceiverThread), NULL); // start kernel, after this main() will behave like a thread with priority osPriorityNormal osKernelStart(); diff --git a/targets/CMSIS-OS/ChibiOS/ST_STM32F429I_DISCOVERY/nanoBooter/main.c b/targets/CMSIS-OS/ChibiOS/ST_STM32F429I_DISCOVERY/nanoBooter/main.c index 1d988e7ae1..fbd1c1b73c 100644 --- a/targets/CMSIS-OS/ChibiOS/ST_STM32F429I_DISCOVERY/nanoBooter/main.c +++ b/targets/CMSIS-OS/ChibiOS/ST_STM32F429I_DISCOVERY/nanoBooter/main.c @@ -11,6 +11,7 @@ #include #include #include +#include #include void BlinkerThread(void const * argument) @@ -35,9 +36,6 @@ osThreadDef(ReceiverThread, osPriorityHigh, 3072, "ReceiverThread"); // Application entry point. int main(void) { - osThreadId blinkerThreadId; - osThreadId receiverThreadId; - // HAL initialization, this also initializes the configured device drivers // and performs the board-specific initializations. halInit(); @@ -80,10 +78,10 @@ int main(void) { usbConnectBus(serusbcfg.usbp); // Creates the blinker thread, it does not start immediately. - blinkerThreadId = osThreadCreate(osThread(BlinkerThread), NULL); + osThreadCreate(osThread(BlinkerThread), NULL); // create the receiver thread - receiverThreadId = osThreadCreate(osThread(ReceiverThread), NULL); + osThreadCreate(osThread(ReceiverThread), NULL); // start kernel, after this main() will behave like a thread with priority osPriorityNormal osKernelStart(); diff --git a/targets/CMSIS-OS/ChibiOS/ST_STM32F4_DISCOVERY/nanoBooter/main.c b/targets/CMSIS-OS/ChibiOS/ST_STM32F4_DISCOVERY/nanoBooter/main.c index 08362c6a3f..07800a6b54 100644 --- a/targets/CMSIS-OS/ChibiOS/ST_STM32F4_DISCOVERY/nanoBooter/main.c +++ b/targets/CMSIS-OS/ChibiOS/ST_STM32F4_DISCOVERY/nanoBooter/main.c @@ -11,6 +11,7 @@ #include #include #include +#include #include void BlinkerThread(void const * argument) @@ -36,9 +37,6 @@ osThreadDef(ReceiverThread, osPriorityHigh, 3072, "ReceiverThread"); // Application entry point. int main(void) { - osThreadId blinkerThreadId; - osThreadId receiverThreadId; - // HAL initialization, this also initializes the configured device drivers // and performs the board-specific initializations. halInit(); @@ -81,10 +79,10 @@ int main(void) { usbConnectBus(serusbcfg.usbp); // Creates the blinker thread, it does not start immediately. - blinkerThreadId = osThreadCreate(osThread(BlinkerThread), NULL); + osThreadCreate(osThread(BlinkerThread), NULL); // create the receiver thread - receiverThreadId = osThreadCreate(osThread(ReceiverThread), NULL); + osThreadCreate(osThread(ReceiverThread), NULL); // start kernel, after this main() will behave like a thread with priority osPriorityNormal osKernelStart(); diff --git a/targets/CMSIS-OS/ChibiOS/ST_STM32F769I_DISCOVERY/nanoBooter/main.c b/targets/CMSIS-OS/ChibiOS/ST_STM32F769I_DISCOVERY/nanoBooter/main.c index f87289b254..a90770bfd1 100644 --- a/targets/CMSIS-OS/ChibiOS/ST_STM32F769I_DISCOVERY/nanoBooter/main.c +++ b/targets/CMSIS-OS/ChibiOS/ST_STM32F769I_DISCOVERY/nanoBooter/main.c @@ -11,6 +11,7 @@ #include #include #include +#include #include void BlinkerThread(void const * argument) @@ -35,9 +36,6 @@ osThreadDef(ReceiverThread, osPriorityHigh, 3072, "ReceiverThread"); // Application entry point. int main(void) { - osThreadId blinkerThreadId; - osThreadId receiverThreadId; - // HAL initialization, this also initializes the configured device drivers // and performs the board-specific initializations. halInit(); @@ -81,10 +79,10 @@ int main(void) { usbConnectBus(serusbcfg.usbp); // Creates the blinker thread, it does not start immediately. - blinkerThreadId = osThreadCreate(osThread(BlinkerThread), NULL); + osThreadCreate(osThread(BlinkerThread), NULL); // create the receiver thread - receiverThreadId = osThreadCreate(osThread(ReceiverThread), NULL); + osThreadCreate(osThread(ReceiverThread), NULL); // start kernel, after this main() will behave like a thread with priority osPriorityNormal osKernelStart();