]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/PIC32MZ_MPLAB/main_blinky.c
Update the demo directory to use the version 8 type naming conventions.
[freertos] / FreeRTOS / Demo / PIC32MZ_MPLAB / main_blinky.c
index 034272e1f89ad29ba10b62d634ed0b7f46234802..067ef46c19edbaa7244f8fe9859a4c31ffcf7c71 100644 (file)
 #define mainQUEUE_RECEIVE_TASK_PRIORITY        ( tskIDLE_PRIORITY + 2 )\r
 \r
 /* The rate at which data is sent to the queue.  The 200ms value is converted\r
-to ticks using the portTICK_RATE_MS constant. */\r
-#define mainQUEUE_SEND_FREQUENCY_MS            ( 200 / portTICK_RATE_MS )\r
+to ticks using the portTICK_PERIOD_MS constant. */\r
+#define mainQUEUE_SEND_FREQUENCY_MS            ( 200 / portTICK_PERIOD_MS )\r
 \r
 /* The number of items the queue can hold.  This is 1 as the receive task\r
 will remove items as they are added, meaning the send task should always find\r
@@ -127,8 +127,8 @@ functionality. */
 #define mainQUEUE_RECEIVE_PARAMETER            ( 0x22UL )\r
 \r
 /* The period of the blinky software timer.  The period is specified in ms and\r
-converted to ticks using the portTICK_RATE_MS constant. */\r
-#define mainBLINKY_TIMER_PERIOD                        ( 50 / portTICK_RATE_MS )\r
+converted to ticks using the portTICK_PERIOD_MS constant. */\r
+#define mainBLINKY_TIMER_PERIOD                        ( 50 / portTICK_PERIOD_MS )\r
 \r
 /* The LED used by the communicating tasks and the blinky timer respectively. */\r
 #define mainTASKS_LED                                  ( 0 )\r
@@ -149,7 +149,7 @@ static void prvQueueSendTask( void *pvParameters );
  * The callback function for the blinky software timer, as described at the top\r
  * of this file.\r
  */\r
-static void prvBlinkyTimerCallback( xTimerHandle xTimer );\r
+static void prvBlinkyTimerCallback( TimerHandle_t xTimer );\r
 \r
 /*\r
  * Called by main() to create the simply blinky style application if\r
@@ -160,13 +160,13 @@ void main_blinky( void );
 /*-----------------------------------------------------------*/\r
 \r
 /* The queue used by both tasks. */\r
-static xQueueHandle xQueue = NULL;\r
+static QueueHandle_t xQueue = NULL;\r
 \r
 /*-----------------------------------------------------------*/\r
 \r
 void main_blinky( void )\r
 {\r
-xTimerHandle xTimer;\r
+TimerHandle_t xTimer;\r
 \r
        /* Create the queue. */\r
        xQueue = xQueueCreate( mainQUEUE_LENGTH, sizeof( unsigned long ) );\r
@@ -214,7 +214,7 @@ xTimerHandle xTimer;
 \r
 static void prvQueueSendTask( void *pvParameters )\r
 {\r
-portTickType xNextWakeTime;\r
+TickType_t xNextWakeTime;\r
 const unsigned long ulValueToSend = 100UL;\r
 \r
        /* Remove compiler warnigns in the case that configASSERT() is not dfined. */\r
@@ -271,7 +271,7 @@ unsigned long ulReceivedValue;
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-static void prvBlinkyTimerCallback( xTimerHandle xTimer )\r
+static void prvBlinkyTimerCallback( TimerHandle_t xTimer )\r
 {\r
        /* Avoid compiler warnings. */\r
        ( void ) xTimer;\r