]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/Common/Minimal/BlockQ.c
Update the demo directory to use the version 8 type naming conventions.
[freertos] / FreeRTOS / Demo / Common / Minimal / BlockQ.c
index 8c5e385424a3349544d260ecceff5d1ba1a92b46..c69c7353b622a894fe8235970f2264bc6c2c4969 100644 (file)
 /* Structure used to pass parameters to the blocking queue tasks. */\r
 typedef struct BLOCKING_QUEUE_PARAMETERS\r
 {\r
-       xQueueHandle xQueue;                                    /*< The queue to be used by the task. */\r
-       portTickType xBlockTime;                                /*< The block time to use on queue reads/writes. */\r
+       QueueHandle_t xQueue;                                   /*< The queue to be used by the task. */\r
+       TickType_t xBlockTime;                          /*< The block time to use on queue reads/writes. */\r
        volatile short *psCheckVariable;        /*< Incremented on each successful cycle to check the task is still running. */\r
 } xBlockingQueueParameters;\r
 \r
@@ -132,8 +132,8 @@ xBlockingQueueParameters *pxQueueParameters1, *pxQueueParameters2;
 xBlockingQueueParameters *pxQueueParameters3, *pxQueueParameters4;\r
 xBlockingQueueParameters *pxQueueParameters5, *pxQueueParameters6;\r
 const unsigned portBASE_TYPE uxQueueSize1 = 1, uxQueueSize5 = 5;\r
-const portTickType xBlockTime = ( portTickType ) 1000 / portTICK_RATE_MS;\r
-const portTickType xDontBlock = ( portTickType ) 0;\r
+const TickType_t xBlockTime = ( TickType_t ) 1000 / portTICK_PERIOD_MS;\r
+const TickType_t xDontBlock = ( TickType_t ) 0;\r
 \r
        /* Create the first two tasks as described at the top of the file. */\r
 \r