S32K334 with SW32K3_RTD_4.4_1.0.0, Interrupt

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

S32K334 with SW32K3_RTD_4.4_1.0.0, Interrupt

1,036件の閲覧回数
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,004件の閲覧回数
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 件の賞賛
返信

988件の閲覧回数
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 件の賞賛
返信

971件の閲覧回数
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 件の賞賛
返信