]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/WIN32-MSVC/main_blinky.c
Add software timer to the Win32 blinky demo.
[freertos] / FreeRTOS / Demo / WIN32-MSVC / main_blinky.c
index 5bd6311e026bb51518c73471135d8affcc5f6ed2..065561b9ee959a8ef918cdd7b01c34213097d655 100644 (file)
@@ -160,6 +160,8 @@ const TickType_t xTimerPeriod = mainTIMER_SEND_FREQUENCY_MS;
                                                                NULL,                           /* The timer's ID is not used. */\r
                                                                prvQueueSendTimerCallback );/* The function executed when the timer expires. */\r
 \r
+               xTimerStart( xTimer, 0 ); /* The scheduler has not started so use a block time of 0. */\r
+\r
                /* Start the tasks and timer running. */\r
                vTaskStartScheduler();\r
        }\r