External Interrupt for PORT

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

External Interrupt for PORT

1,199 次查看
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 项奖励
回复
2 回复数

1,176 次查看
shudhamatinarha
Contributor II

thank you hung that will help.

0 项奖励
回复

1,184 次查看
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 项奖励
回复