]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/Common/Minimal/crflash.c
Ensure demo app files are using FreeRTOS V8 names - a few were missed previously.
[freertos] / FreeRTOS / Demo / Common / Minimal / crflash.c
index df6b604011b92756e832b0e5ca8e13eb434ab7cd..3e4ba0475bd31896a454c9322c84c4482f09ec84 100644 (file)
@@ -118,28 +118,28 @@ created. */
 /*\r
  * The 'fixed delay' co-routine as described at the top of the file.\r
  */\r
-static void prvFixedDelayCoRoutine( CoRoutineHandle_t xHandle, unsigned portBASE_TYPE uxIndex );\r
+static void prvFixedDelayCoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex );\r
 \r
 /*\r
  * The 'flash' co-routine as described at the top of the file.\r
  */\r
-static void prvFlashCoRoutine( CoRoutineHandle_t xHandle, unsigned portBASE_TYPE uxIndex );\r
+static void prvFlashCoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex );\r
 \r
 /* The queue used to pass data between the 'fixed delay' co-routines and the\r
 'flash' co-routine. */\r
 static QueueHandle_t xFlashQueue;\r
 \r
 /* This will be set to pdFALSE if we detect an error. */\r
-static portBASE_TYPE xCoRoutineFlashStatus = pdPASS;\r
+static BaseType_t xCoRoutineFlashStatus = pdPASS;\r
 \r
 /*-----------------------------------------------------------*/\r
 \r
 /*\r
  * See the header file for details.\r
  */\r
-void vStartFlashCoRoutines( unsigned portBASE_TYPE uxNumberToCreate )\r
+void vStartFlashCoRoutines( UBaseType_t uxNumberToCreate )\r
 {\r
-unsigned portBASE_TYPE uxIndex;\r
+UBaseType_t uxIndex;\r
 \r
        if( uxNumberToCreate > crfMAX_FLASH_TASKS )\r
        {\r
@@ -147,7 +147,7 @@ unsigned portBASE_TYPE uxIndex;
        }\r
 \r
        /* Create the queue used to pass data between the co-routines. */\r
-       xFlashQueue = xQueueCreate( crfQUEUE_LENGTH, sizeof( unsigned portBASE_TYPE ) );\r
+       xFlashQueue = xQueueCreate( crfQUEUE_LENGTH, sizeof( UBaseType_t ) );\r
 \r
        if( xFlashQueue )\r
        {\r
@@ -163,11 +163,11 @@ unsigned portBASE_TYPE uxIndex;
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-static void prvFixedDelayCoRoutine( CoRoutineHandle_t xHandle, unsigned portBASE_TYPE uxIndex )\r
+static void prvFixedDelayCoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )\r
 {\r
 /* Even though this is a co-routine the xResult variable does not need to be\r
 static as we do not need it to maintain its state between blocks. */\r
-signed portBASE_TYPE xResult;\r
+BaseType_t xResult;\r
 /* The uxIndex parameter of the co-routine function is used as an index into\r
 the xFlashRates array to obtain the delay period to use. */\r
 static const TickType_t xFlashRates[ crfMAX_FLASH_TASKS ] = { 150 / portTICK_PERIOD_MS,\r
@@ -204,12 +204,12 @@ static const TickType_t xFlashRates[ crfMAX_FLASH_TASKS ] = { 150 / portTICK_PER
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-static void prvFlashCoRoutine( CoRoutineHandle_t xHandle, unsigned portBASE_TYPE uxIndex )\r
+static void prvFlashCoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )\r
 {\r
 /* Even though this is a co-routine the variable do not need to be\r
 static as we do not need it to maintain their state between blocks. */\r
-signed portBASE_TYPE xResult;\r
-unsigned portBASE_TYPE uxLEDToFlash;\r
+BaseType_t xResult;\r
+UBaseType_t uxLEDToFlash;\r
 \r
        /* Co-routines MUST start with a call to crSTART. */\r
        crSTART( xHandle );\r
@@ -237,7 +237,7 @@ unsigned portBASE_TYPE uxLEDToFlash;
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-portBASE_TYPE xAreFlashCoRoutinesStillRunning( void )\r
+BaseType_t xAreFlashCoRoutinesStillRunning( void )\r
 {\r
        /* Return pdPASS or pdFAIL depending on whether an error has been detected\r
        or not. */\r