Hi @namnguyenviet
Thanks for your reply, So just to make things clear all I have to do is to link GPT with WDG through call back notification, then I can call Set_triggerCondtion() freely in tasks with Timeout Paramater in milliseconds ? and it will refresh WDG timer Instantly ? or it will have to wait for the ISR to be served ?
Now for the ISR, what I have already done before submitting the ticket :
I enabled IRQ_handlers in Cstartup :
#define CSTS32K_coUSE_RTC_IRQHandler
#define CSTS32K_u8RTC_PRIORITY 7u
should I make priority 0 or 1 ?
and then called the ISR in the IRQ handler
S32K_udtIT_HDL_PREFIX CSTS32K_vidRTC_IRQHandler(void)
{
Os_Isr_Gpt_SRTC_0_Ch_0_ISR();
}
I have not yet checked for flags, I will be doing that then I will return with a response but so far that should do the trick right and both timers where given prehpiral clocks, enabled and ISR enabled from tresos ? so nothing more to implement, right ?