|
|||||||||||
|
Technical Support On-Line Manuals MCBSTR730 User's Guide |
MCBSTR730 User's GuideSTMicroelectronics ExamplesSTMicroelectronics functions in the STR73XD.LIB and STR73XR.LIB STR73x 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 73x_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 STR730 Library functions: // Configure and enable IRQ for Timer 3 EIC_IRQChannelConfig(T3TIMI_IRQChannel, ENABLE); EIC_IRQChannelPriorityConfig(T3TIMI_IRQChannel, 1); EIC_IRQConfig(ENABLE); // Configure IRQ | ||||||||||
|
|||||||||||