S32K334 with SW32K3_RTD_4.4_1.0.0, Interrupt

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

S32K334 with SW32K3_RTD_4.4_1.0.0, Interrupt

1,292 次查看
AnhNguyenDuc
NXP Employee
NXP Employee

I'm migrating from K1( with S32SDK_S32K1xx_RTM_3.0.0) to K3(with SW32K3_RTD_4.4_1.0.0).

I see "interrupt_manager.h" in K1 is same as "IntCtrl_Ip.h" in K3, functions:

INT_SYS_SetPriority = IntCtrl_Ip_SetPriority

INT_SYS_InstallHandler = IntCtrl_Ip_InstallHandler

....

but, INT_SYS_EnableIRQGlobal, INT_SYS_DisableIRQGlobal functions I can't see any functions in K3 is the same. Who can help me do this ?

0 项奖励
回复
3 回复数

1,260 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @AnhNguyenDuc,

I see that the drivers call OsIf_SuspendAllInterrupts() on enterring a critical section.

danielmartynek_0-1642692891042.png

 

Regards,

Daniel

 

 

 

0 项奖励
回复

1,244 次查看
AnhNguyenDuc
NXP Employee
NXP Employee

Yes, but I got the error when I using this function

error: implicit declaration of function 'OsIf_SuspendAllInterrupts' [-Werror=implicit-function-declaration]
325 | OsIf_SuspendAllInterrupts();

My project has the header (OsIf_internal.h)

Ducanh_0-1642694257416.png

 

0 项奖励
回复

1,227 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @AnhNguyenDuc,

I just tries with the Power_Ip_Example_S32K344.

Without adding anything to the project, I can compile the OsIf_SuspendAllInterrupts() function in main.c

 

Can check on your side?

 

BR, Daniel

0 项奖励
回复