how to create interrupt function in s32k148

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

how to create interrupt function in s32k148

ソリューションへジャンプ
2,764件の閲覧回数
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,755件の閲覧回数
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,756件の閲覧回数
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,746件の閲覧回数
sephangie
Contributor I

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

0 件の賞賛
返信