| |||||
Technical Support On-Line Manuals MCBSTR7 User's Guide | STMicroelectronics ExamplesSTMicroelectronics functions in the STR71XD.LIB and STR71XR.LIB STR71x Software Library files use a common IRQ handler for interrupt functions. This handler does not require you to create a separate 64KB memory segment for interrupt functions. All interrupt functions are implemented in the 71X_IT.C module as shown below:
/**********************************************************************
* Function Name : T3TIMI_IRQHandler
* Description : This function handles Timer3 global interrupt.
* Input : None
* Output : None
* Return : None
**********************************************************************/
extern void TimeTick (void);
void T3TIMI_IRQHandler(void)
{
TimeTick();
TIM_FlagClear(TIM3, TIM_TO_IT);
}
To enable the interrupt, execute the following STR7 Library functions: // Configure and enable IRQ for Timer 3 EIC_IRQChannelConfig(T3TIMI_IRQChannel, ENABLE); EIC_IRQChannelPriorityConfig(T3TIMI_IRQChannel, 1); EIC_IRQConfig(ENABLE); // Configure IRQ | ||||
| |||||