AnsweredAssumed Answered

how can l set interrupt priority on s32ds

Question asked by jinshuai xu on Jul 21, 2017
Latest reply on Jul 25, 2017 by Daniel Martynek

           below is tow interrupt code ,if I want to set systick interrupt prioyity higher than wdog, who can tell me below code is right or wrong.?l an a new user ,firstly use S32K144 and S32DS. 

           please give me code or example code,thank you .

 

/* Install IRQ handlers for WDOG and SysTick interrupts */
INT_SYS_InstallHandler(WDOG_EWM_IRQn, WDOG_ISR, (isr_t *)0);
INT_SYS_InstallHandler(SysTick_IRQn, SysTick_Handler, (isr_t *)0);


INT_SYS_SetPriority(WDOG_EWM_IRQn,0);
INT_SYS_SetPriority(SysTick_IRQn,1);

Outcomes