Keil Logo Arm Logo

MCBSTR730 User's Guide

STMicroelectronics Examples

STMicroelectronics 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

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.