Function Call inside IVOR4 Handler_MPC5777C

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

Function Call inside IVOR4 Handler_MPC5777C

1,110件の閲覧回数
afsar_mohammed
Contributor I

Hi,

Here is my question,

1. Can i do function call inside IVOR4 handler (Prologue and Epilogue ) in MPC5777C?  similar to this Machine_Check_Handler call ?

e_lis r0, Machine_check_handler@h
e_or2i r0, Machine_check_handler@l

mtlr r0 # Store LR

Idea is to calculate preemption time in External Interrupts, by adding Stop Watch start and End in Prologue and Epilogue section

if it is possible, share sample code which shows function calling in Prologue/Epilogue handler.

Any suggestion is highly appreciated

Thanks,

Afsar

ラベル(1)
0 件の賞賛
返信
1 返信

1,041件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

you can jump to a function once necessary content is saved to stack. That means after execution of prologue and before jumping to ISR handler. That also means that if you call the function at beginning of an ISR and at the end, effect will be the same.

Regards,

Lukas

0 件の賞賛
返信