#include #include #if defined(COMMAND_LINE) #include #endif #include "scheduler.h" #include "RTE_Components.h" #include CMSIS_device_header #include "cmsis_os2.h" void app_main (void *argument) { int error; uint32_t nbSched = 0; (void)argument; printf("Start\n\r"); nbSched=scheduler(&error); printf("Number of schedule iterations = %d\n\r",nbSched); printf("Error code = %d\n\r",error); #if defined(COMMAND_LINE) exit(0); #else osThreadExit(); #endif } int main(void) { // System Initialization SystemCoreClockUpdate(); osKernelInitialize(); // Initialize CMSIS-RTOS osThreadNew(app_main, NULL, NULL); // Create application main thread osKernelStart(); // Start thread execution for (;;) {} }