X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=FreeRTOS%2FDemo%2FRL78_E2Studio_GCC%2Fsrc%2FCommon-Demo-Tasks%2Fdynamic.c;fp=FreeRTOS%2FDemo%2FRL78_E2Studio_GCC%2Fsrc%2FCommon-Demo-Tasks%2Fdynamic.c;h=69da6f0dcc15b848fab56bb0a6ceb0b69dd029bc;hb=4441dfe80ba8985120b03011669248c16341c033;hp=5b34d8a6a974f3ffc780f501e302df3788136d9c;hpb=b64f63efd1feb40e0ee2d41e041dacc305a7ad82;p=freertos diff --git a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/Common-Demo-Tasks/dynamic.c b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/Common-Demo-Tasks/dynamic.c index 5b34d8a6a..69da6f0dc 100644 --- a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/Common-Demo-Tasks/dynamic.c +++ b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/Common-Demo-Tasks/dynamic.c @@ -153,17 +153,17 @@ static portTASK_FUNCTION_PROTO( vQueueSendWhenSuspendedTask, pvParameters ); /* Demo task specific constants. */ #define priSTACK_SIZE ( configMINIMAL_STACK_SIZE ) -#define priSLEEP_TIME ( ( portTickType ) 128 / portTICK_RATE_MS ) +#define priSLEEP_TIME ( ( TickType_t ) 128 / portTICK_PERIOD_MS ) #define priLOOPS ( 5 ) #define priMAX_COUNT ( ( unsigned long ) 0xff ) -#define priNO_BLOCK ( ( portTickType ) 0 ) +#define priNO_BLOCK ( ( TickType_t ) 0 ) #define priSUSPENDED_QUEUE_LENGTH ( 1 ) /*-----------------------------------------------------------*/ /* Handles to the two counter tasks. These could be passed in as parameters to the controller task to prevent them having to be file scope. */ -static xTaskHandle xContinousIncrementHandle, xLimitedIncrementHandle; +static TaskHandle_t xContinousIncrementHandle, xLimitedIncrementHandle; /* The shared counter variable. This is passed in as a parameter to the two counter variables for demonstration purposes. */ @@ -178,7 +178,7 @@ static volatile portBASE_TYPE xSuspendedQueueSendError = pdFALSE; static volatile portBASE_TYPE xSuspendedQueueReceiveError = pdFALSE; /* Queue used by the second test. */ -static xQueueHandle xSuspendedTestQueue; +static QueueHandle_t xSuspendedTestQueue; /*-----------------------------------------------------------*/ /*