which will have the same timer peripherals defined or available. This example\r
uses the AXI Timer 0. If that is available on your hardware platform then this\r
example callback implementation should not require modification. The name of\r
-the interrupt handler that should be installed is vTickISR(), which the function\r
-below declares as an extern. */\r
+the interrupt handler that should be installed is vPortTickISR(), which the \r
+function below declares as an extern. */\r
void vApplicationSetupTimerInterrupt( void )\r
{\r
portBASE_TYPE xStatus;\r
const unsigned char ucTimerCounterNumber = ( unsigned char ) 0U;\r
const unsigned long ulCounterValue = ( ( XPAR_AXI_TIMER_0_CLOCK_FREQ_HZ / configTICK_RATE_HZ ) - 1UL );\r
-extern void vTickISR( void *pvUnused );\r
+extern void vPortTickISR( void *pvUnused );\r
\r
/* Initialise the timer/counter. */\r
xStatus = XTmrCtr_Initialize( &xTimer0Instance, XPAR_AXI_TIMER_0_DEVICE_ID );\r
/* Install the tick interrupt handler as the timer ISR. \r
*NOTE* The xPortInstallInterruptHandler() API function must be used for\r
this purpose. */\r
- xStatus = xPortInstallInterruptHandler( XPAR_INTC_0_TMRCTR_0_VEC_ID, vTickISR, NULL );\r
+ xStatus = xPortInstallInterruptHandler( XPAR_INTC_0_TMRCTR_0_VEC_ID, vPortTickISR, NULL );\r
}\r
\r
if( xStatus == pdPASS )\r
vPortEnableInterrupt( XPAR_INTC_0_TMRCTR_0_VEC_ID );\r
\r
/* Configure the timer interrupt handler. */\r
- XTmrCtr_SetHandler( &xTimer0Instance, ( void * ) vTickISR, NULL );\r
+ XTmrCtr_SetHandler( &xTimer0Instance, ( void * ) vPortTickISR, NULL );\r
\r
/* Set the correct period for the timer. */\r
XTmrCtr_SetResetValue( &xTimer0Instance, ucTimerCounterNumber, ulCounterValue );\r
*\r
* "Check" timer - The check timer period is initially set to five seconds. \r
* The check timer callback function checks that all the standard demo tasks,\r
- * and the register check tasks, are not only still execution, but are executing\r
+ * and the register check tasks, are not only still executing, but are executing\r
* without reporting any errors. If the check timer discovers that a task has\r
- * either stalled or reported an error, then it changes its own period from\r
- * the inital five seconds, to just 200ms. The check timer callback function \r
+ * either stalled, or reported an error, then it changes its own period from\r
+ * the initial five seconds, to just 200ms. The check timer callback function\r
* also toggles an LED each time it is called. This provides a visual\r
* indication of the system status: If the LED toggles every five seconds then\r
* no issues have been discovered. If the LED toggles every 200ms then an issue\r
which will have the same timer peripherals defined or available. This example\r
uses the AXI Timer 0. If that is available on your hardware platform then this\r
example callback implementation should not require modification. The name of\r
-the interrupt handler that should be installed is vTickISR(), which the function\r
-below declares as an extern. */\r
+the interrupt handler that should be installed is vPortTickISR(), which the \r
+function below declares as an extern. */\r
void vApplicationSetupTimerInterrupt( void )\r
{\r
portBASE_TYPE xStatus;\r
const unsigned char ucTimerCounterNumber = ( unsigned char ) 0U;\r
const unsigned long ulCounterValue = ( ( XPAR_AXI_TIMER_0_CLOCK_FREQ_HZ / configTICK_RATE_HZ ) - 1UL );\r
-extern void vTickISR( void *pvUnused );\r
+extern void vPortTickISR( void *pvUnused );\r
\r
/* Initialise the timer/counter. */\r
xStatus = XTmrCtr_Initialize( &xTimer0Instance, XPAR_AXI_TIMER_0_DEVICE_ID );\r
/* Install the tick interrupt handler as the timer ISR. \r
*NOTE* The xPortInstallInterruptHandler() API function must be used for\r
this purpose. */\r
- xStatus = xPortInstallInterruptHandler( XPAR_INTC_0_TMRCTR_0_VEC_ID, vTickISR, NULL );\r
+ xStatus = xPortInstallInterruptHandler( XPAR_INTC_0_TMRCTR_0_VEC_ID, vPortTickISR, NULL );\r
}\r
\r
if( xStatus == pdPASS )\r
vPortEnableInterrupt( XPAR_INTC_0_TMRCTR_0_VEC_ID );\r
\r
/* Configure the timer interrupt handler. */\r
- XTmrCtr_SetHandler( &xTimer0Instance, ( void * ) vTickISR, NULL );\r
+ XTmrCtr_SetHandler( &xTimer0Instance, ( void * ) vPortTickISR, NULL );\r
\r
/* Set the correct period for the timer. */\r
XTmrCtr_SetResetValue( &xTimer0Instance, ucTimerCounterNumber, ulCounterValue );\r