]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/WIN32-MSVC/main_blinky.c
Update version number in readiness for V10.3.0 release. Sync SVN with reviewed releas...
[freertos] / FreeRTOS / Demo / WIN32-MSVC / main_blinky.c
index bcffc57d23f0422eebab0f7a4b15a6944b04857a..c23eeeb241ddef7dc5a2fc34b8ae7f9693375553 100644 (file)
@@ -1,6 +1,6 @@
 /*\r
- * FreeRTOS Kernel V10.0.0\r
- * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
+ * FreeRTOS Kernel V10.3.0\r
+ * Copyright (C) 2020 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
@@ -10,8 +10,7 @@
  * subject to the following conditions:\r
  *\r
  * The above copyright notice and this permission notice shall be included in all\r
- * copies or substantial portions of the Software. If you wish to use our Amazon\r
- * FreeRTOS name, please do so in a fair use way that does not cause confusion.\r
+ * copies or substantial portions of the Software.\r
  *\r
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\r
@@ -157,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
@@ -241,7 +242,7 @@ uint32_t ulReceivedValue;
                is it an expected value?  Normally calling printf() from a task is not\r
                a good idea.  Here there is lots of stack space and only one task is\r
                using console IO so it is ok.  However, note the comments at the top of\r
-               this file about the risks of making Windows system calls (such as \r
+               this file about the risks of making Windows system calls (such as\r
                console output) from a FreeRTOS task. */\r
                if( ulReceivedValue == mainVALUE_SENT_FROM_TASK )\r
                {\r