Keil Logo

STMicroelectronics Examples

STMicroelectronics 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
  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.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.