]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_LM3S102_Rowley/Demo3/main.c
Update the demo directory to use the version 8 type naming conventions.
[freertos] / FreeRTOS / Demo / CORTEX_LM3S102_Rowley / Demo3 / main.c
index e90cab030c4c72f8729c435a8ec2f5f6cb6b1a69..0668a983b4613b93f87e2ec0b410197a1b017b02 100644 (file)
@@ -131,10 +131,10 @@ static volatile portBASE_TYPE uxDelay = 250;
 \r
 /* The queue used to communicate between the I2C interrupt and the I2C \r
 co-routine. */\r
-static xQueueHandle xADCQueue;\r
+static QueueHandle_t xADCQueue;\r
 \r
 /* The queue used to synchronise the flash co-routines. */\r
-static xQueueHandle xDelayQueue;\r
+static QueueHandle_t xDelayQueue;\r
 \r
 /*\r
  * Sets up the PLL, I2C and GPIO used by the demo.\r
@@ -156,7 +156,7 @@ unsigned portBASE_TYPE uxCoRoutine;
 \r
        /* Create the queue used to communicate between the ISR and I2C co-routine.\r
        This can only ever contain one value. */\r
-       xADCQueue = xQueueCreate( mainQUEUE_LENGTH, sizeof( portTickType ) );\r
+       xADCQueue = xQueueCreate( mainQUEUE_LENGTH, sizeof( TickType_t ) );\r
 \r
        /* Create the queue used to synchronise the flash co-routines.  The queue\r
        is used to trigger three tasks, but is for synchronisation only and does\r
@@ -207,7 +207,7 @@ static void prvSetupHardware( void )
 \r
 static void vI2CCoRoutine( CoRoutineHandle_t xHandle, unsigned portBASE_TYPE uxIndex )\r
 {\r
-portTickType xADCResult;\r
+TickType_t xADCResult;\r
 static portBASE_TYPE xResult = 0, xMilliSecs, xLED;\r
 \r
        crSTART( xHandle );\r
@@ -225,7 +225,7 @@ static portBASE_TYPE xResult = 0, xMilliSecs, xLED;
                /* Scale the result to give a useful range of values for a visual \r
                demo. */\r
                xADCResult >>= 2;\r
-               xMilliSecs = xADCResult / portTICK_RATE_MS;\r
+               xMilliSecs = xADCResult / portTICK_PERIOD_MS;\r
 \r
                /* The delay is split between the four co-routines so they remain in\r
                synch. */\r
@@ -275,7 +275,7 @@ portBASE_TYPE xResult, xNothing;
 \r
 void vI2C_ISR(void)\r
 {\r
-static portTickType xReading;\r
+static TickType_t xReading;\r
 \r
        /* Clear the interrupt. */\r
        I2CMasterIntClear( I2C_MASTER_BASE );\r