how to create interrupt function in s32k148

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

how to create interrupt function in s32k148

跳至解决方案
2,767 次查看
sephangie
Contributor I

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!

0 项奖励
回复
1 解答
2,758 次查看
Senlent
NXP TechSupport
NXP TechSupport

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,

在原帖中查看解决方案

0 项奖励
回复
2 回复数
2,759 次查看
Senlent
NXP TechSupport
NXP TechSupport

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,

0 项奖励
回复
2,749 次查看
sephangie
Contributor I

yes, sure I am going to find more in SDK, thank you! @Senlent 

0 项奖励
回复