diff --git a/CMSIS-OS/ChibiOS/GHI_FEZ_CERB40_NF/nanoBooter/main.c b/CMSIS-OS/ChibiOS/GHI_FEZ_CERB40_NF/nanoBooter/main.c index 027a810a..41eafd90 100644 --- a/CMSIS-OS/ChibiOS/GHI_FEZ_CERB40_NF/nanoBooter/main.c +++ b/CMSIS-OS/ChibiOS/GHI_FEZ_CERB40_NF/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(); @@ -74,10 +72,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/CMSIS-OS/ChibiOS/I2M_ELECTRON_NF/nanoBooter/main.c b/CMSIS-OS/ChibiOS/I2M_ELECTRON_NF/nanoBooter/main.c index 1021903e..6a2ec9aa 100644 --- a/CMSIS-OS/ChibiOS/I2M_ELECTRON_NF/nanoBooter/main.c +++ b/CMSIS-OS/ChibiOS/I2M_ELECTRON_NF/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(); @@ -73,10 +71,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/CMSIS-OS/ChibiOS/I2M_OXYGEN_NF/nanoBooter/main.c b/CMSIS-OS/ChibiOS/I2M_OXYGEN_NF/nanoBooter/main.c index 119f9a70..3cd23e55 100644 --- a/CMSIS-OS/ChibiOS/I2M_OXYGEN_NF/nanoBooter/main.c +++ b/CMSIS-OS/ChibiOS/I2M_OXYGEN_NF/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(); @@ -73,10 +71,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/CMSIS-OS/ChibiOS/ST_NUCLEO64_F401RE_NF/nanoBooter/main.c b/CMSIS-OS/ChibiOS/ST_NUCLEO64_F401RE_NF/nanoBooter/main.c index 19377888..30d27e95 100644 --- a/CMSIS-OS/ChibiOS/ST_NUCLEO64_F401RE_NF/nanoBooter/main.c +++ b/CMSIS-OS/ChibiOS/ST_NUCLEO64_F401RE_NF/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(); @@ -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/CMSIS-OS/ChibiOS/ST_NUCLEO64_F411RE_NF/nanoBooter/main.c b/CMSIS-OS/ChibiOS/ST_NUCLEO64_F411RE_NF/nanoBooter/main.c index e5bd7739..9bd3140e 100644 --- a/CMSIS-OS/ChibiOS/ST_NUCLEO64_F411RE_NF/nanoBooter/main.c +++ b/CMSIS-OS/ChibiOS/ST_NUCLEO64_F411RE_NF/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();