]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/WIN32-MSVC/main_blinky.c
Ensure both one-shot and auto-reload are written consistently with a hyphen in comments.
[freertos] / FreeRTOS / Demo / WIN32-MSVC / main_blinky.c
index cdfdbed3ff900be967b47ed4e922941465195df6..e9ef5fb307bde514fb3d35644ef24aa9025c1173 100644 (file)
@@ -1,6 +1,6 @@
 /*\r
- * FreeRTOS Kernel V10.0.1\r
- * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
+ * FreeRTOS Kernel V10.2.1\r
+ * Copyright (C) 2019 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
  * this software and associated documentation files (the "Software"), to deal in\r
@@ -156,10 +156,12 @@ const TickType_t xTimerPeriod = mainTIMER_SEND_FREQUENCY_MS;
                /* Create the software timer, but don't start it yet. */\r
                xTimer = xTimerCreate( "Timer",                         /* The text name assigned to the software timer - for debug only as it is not used by the kernel. */\r
                                                                xTimerPeriod,           /* The period of the software timer in ticks. */\r
-                                                               pdFALSE,                        /* xAutoReload is set to pdFALSE, so this is a one shot timer. */\r
+                                                               pdFALSE,                        /* xAutoReload is set to pdFALSE, so this is a one-shot timer. */\r
                                                                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