how to create interrupt function in s32k148

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to create interrupt function in s32k148

Jump to solution
1,691 Views
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 Kudos
Reply
1 Solution
1,682 Views
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,

View solution in original post

0 Kudos
Reply
2 Replies
1,683 Views
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 Kudos
Reply
1,673 Views
sephangie
Contributor I

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

0 Kudos
Reply