Commit f5bb1c76 authored by Johannes Wiesboeck's avatar Johannes Wiesboeck Committed by Oliver Horst
Browse files

[chg] Use global interrupt controller for Tick interrupt.

parent 71e079b2
......@@ -56,7 +56,6 @@ void vApplicationStackOverflowHook( TaskHandle_t xTask, char *pcTaskName ) __att
/* Timer used to generate the tick interrupt. */
static XTtcPs xTimerInstance;
XScuGic xInterruptController;
/*-----------------------------------------------------------*/
void FreeRTOS_SetupTickInterrupt( void )
......@@ -71,26 +70,6 @@ XScuGic_Config *pxInterruptControllerConfig;
timer_offset = 3 * uxHalGetCpuId();
XScuGic_SetCpuID( uxHalGetCpuId() );
/* Initialize the interrupt controller driver. */
pxInterruptControllerConfig = XScuGic_LookupConfig( configINTERRUPT_CONTROLLER_DEVICE_ID );
XScuGic_CfgInitialize( &xInterruptController,
pxInterruptControllerConfig,
pxInterruptControllerConfig->CpuBaseAddress );
/* By default XScuGic maps all SPI interrupts to the local core so unmap them again. */
XScuGic_UnmapAllInterruptsFromCpu( &xInterruptController, uxHalGetCpuId() );
/* Connect the interrupt controller interrupt handler to the hardware
interrupt handling logic in the ARM processor. */
Xil_ExceptionRegisterHandler( XIL_EXCEPTION_ID_IRQ_INT,
( Xil_ExceptionHandler )XScuGic_InterruptHandler,
&xInterruptController);
/* Enable interrupts in the ARM. */
Xil_ExceptionEnable();
pxTimerConfiguration = XTtcPs_LookupConfig( configTIMER_ID + timer_offset );
/* Initialise the device. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment