Hi,
is there anyone who knows how to create interrupt function in s32k148 as following, IAR manual says CORTEX-M4 is not available to use _ _irq
extern - -irq void abc_Interrupt(void);
appreciate your help!
Solved! Go to Solution.
Hi@sephangie
for example , create an interrupt for Port D(GPIO).
INT_SYS_InstallHandler(PORTD_IRQn, &PortD_Extern_ISR, (isr_t*) 0);
INT_SYS_EnableIRQ(PORTD_IRQn);
void PortD_Extern_ISR(void)
{
PINS_DRV_ClearPortIntFlagCmd(PORTD);
}
There are many routines in the official SDK , for details, you can refer to the routines.
BR!
Jim,
Hi@sephangie
for example , create an interrupt for Port D(GPIO).
INT_SYS_InstallHandler(PORTD_IRQn, &PortD_Extern_ISR, (isr_t*) 0);
INT_SYS_EnableIRQ(PORTD_IRQn);
void PortD_Extern_ISR(void)
{
PINS_DRV_ClearPortIntFlagCmd(PORTD);
}
There are many routines in the official SDK , for details, you can refer to the routines.
BR!
Jim,
yes, sure I am going to find more in SDK, thank you! @Senlent