External Interrupt for PORT

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

External Interrupt for PORT

1,096 Views
shudhamatinarha
Contributor II

Hello NXP team,

I am using S32K14X_MCAL4_3_RTM_HF2_1_0_1 MCAL version.

I want to assign external interrupt on PORT PIN but i am not able to find any such API/Functionality present in source code. can you please guide how i can implement ISR for it. 

Thank you in advance.

0 Kudos
2 Replies

1,073 Views
shudhamatinarha
Contributor II

thank you hung that will help.

0 Kudos

1,081 Views
hungnguyenphi
NXP Employee
NXP Employee

Hello Shudhamatinarha,

As far as I know, the MCAL package doesn't have API to install the interrupt handler. Use need to do it manually. Normally, the OS will install the interrupt handler.

In the sample app, MCAL team has provided the demo which show how to install the interrupt handler. Please find the sample app in the MCAL package S32K14X_MCAL4_3_RTM_1_0_1.

sys_enableIsrSource(id, priority);
sys_registerIsrHandler(id, (uint32) interrupt_handler);

 

Best regards,

Hung.

0 Kudos