]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/WIN32-MingW/main_full.c
Ensure both one-shot and auto-reload are written consistently with a hyphen in comments.
[freertos] / FreeRTOS / Demo / WIN32-MingW / main_full.c
index 84ae4074e3c7711e7400dc532527a1d3f7a82887..718c1e1b0a86edcc052fc646f43a7855cdecd2ce 100644 (file)
@@ -173,7 +173,7 @@ static void prvPermanentlyBlockingNotificationTask( void *pvParameters );
 \r
 /*\r
  * The test function and callback function used when exercising the timer AP\r
- * function that changes the timer's autoreload mode.\r
+ * function that changes the timer's auto-reload mode.\r
  */\r
 static void prvDemonstrateChangingTimerReloadMode( void *pvParameters );\r
 static void prvReloadModeTestTimerCallback( TimerHandle_t xTimer );\r
@@ -866,7 +866,7 @@ const TickType_t x100ms = pdMS_TO_TICKS( 100UL );
 \r
        xTimer = xTimerCreate(  pcTimerName,\r
                                                        x100ms,\r
-                                                       pdFALSE, /* Created as a one shot timer. */\r
+                                                       pdFALSE, /* Created as a one-shot timer. */\r
                                                        0,\r
                                                        prvReloadModeTestTimerCallback );\r
        configASSERT( xTimer );\r
@@ -875,7 +875,7 @@ const TickType_t x100ms = pdMS_TO_TICKS( 100UL );
        configASSERT( strcmp( pcTimerName, pcTimerGetName( xTimer ) ) == 0 );\r
        configASSERT( xTimerGetPeriod( xTimer ) == x100ms );\r
 \r
-       /* Timer was created as a one shot timer.  Its callback just increments the\r
+       /* Timer was created as a one-shot timer.  Its callback just increments the\r
        timer's ID - so set the ID to 0, let the timer run for a number of timeout\r
        periods, then check the timer has only executed once. */\r
        vTimerSetTimerID( xTimer, ( void * ) 0 );\r
@@ -883,7 +883,7 @@ const TickType_t x100ms = pdMS_TO_TICKS( 100UL );
        vTaskDelay( 3UL * x100ms );\r
        configASSERT( ( ( uint32_t ) ( pvTimerGetTimerID( xTimer ) ) ) == 1UL );\r
 \r
-       /* Now change the timer to be an autoreload timer and check it executes\r
+       /* Now change the timer to be an auto-reload timer and check it executes\r
        the expected number of times. */\r
        vTimerSetReloadMode( xTimer, pdTRUE );\r
        vTimerSetTimerID( xTimer, ( void * ) 0 );\r
@@ -892,7 +892,7 @@ const TickType_t x100ms = pdMS_TO_TICKS( 100UL );
        configASSERT( ( uint32_t ) ( pvTimerGetTimerID( xTimer ) ) == 3UL );\r
        configASSERT( xTimerStop( xTimer, 0 ) != pdFAIL );\r
 \r
-       /* Now change the timer back to be a one shot timer and check it only\r
+       /* Now change the timer back to be a one-shot timer and check it only\r
        executes once. */\r
        vTimerSetReloadMode( xTimer, pdFALSE );\r
        vTimerSetTimerID( xTimer, ( void * ) 0 );\r