]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/RX100-RSK_Renesas_e2studio/RTOSDemo/main_low_power.c
Update the demo directory to use the version 8 type naming conventions.
[freertos] / FreeRTOS / Demo / RX100-RSK_Renesas_e2studio / RTOSDemo / main_low_power.c
index c3c86ec1b8ac425efaaaf94c2ded2ba168d2c46f..c69b6898675473310be8de65a85e78bfca8854f5 100644 (file)
@@ -213,10 +213,10 @@ void vButtonInterruptCallback( void );
 /*-----------------------------------------------------------*/\r
 \r
 /* The queue to pass data from the Tx task to the Rx task. */\r
-static xQueueHandle xQueue = NULL;\r
+static QueueHandle_t xQueue = NULL;\r
 \r
 /* The semaphore that is 'given' by interrupts generated from button pushes. */\r
-static xSemaphoreHandle xSemaphore = NULL;\r
+static SemaphoreHandle_t xSemaphore = NULL;\r
 \r
 /*-----------------------------------------------------------*/\r
 \r
@@ -257,7 +257,7 @@ void main_low_power( void )
 \r
 static void prvQueueSendTask( void *pvParameters )\r
 {\r
-portTickType xDelay;\r
+TickType_t xDelay;\r
 const unsigned long ulValueToSend = mainQUEUED_VALUE;\r
 \r
        /* Remove compiler warning about unused parameter. */\r
@@ -267,7 +267,7 @@ const unsigned long ulValueToSend = mainQUEUED_VALUE;
        {\r
                /* The delay period between successive sends to the queue is set by\r
                the potentiometer reading. */\r
-               xDelay = ( portTickType ) prvReadPOT();\r
+               xDelay = ( TickType_t ) prvReadPOT();\r
 \r
                /* If the block time is greater than 3000 milliseconds then block\r
                indefinitely waiting for a button push. */\r
@@ -280,7 +280,7 @@ const unsigned long ulValueToSend = mainQUEUED_VALUE;
                else\r
                {\r
                        /* Convert a time in milliseconds to a time in ticks. */\r
-                       xDelay /= portTICK_RATE_MS;\r
+                       xDelay /= portTICK_PERIOD_MS;\r
 \r
                        /* Place this task in the blocked state until it is time to run\r
                        again.  As this is not an indefinite sleep the kernel will place\r