\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
\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
\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
/* 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
\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