Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
Call the TimerInit() function before the infinite “for loop” ( for ( ; ).
In the example code snippet, CY_FX_WATCHDOG_PERIODis the watchdog timer reset period, that is, if the watchdog timer is not cleared before this time period, FX3 would be reset. So, one more timer (WdClearTimer) is created to clear the watchdog timer before it expires.
The value of CY_FX_WATCHDOG_CLEAR_PERIODshould be lesser than that of CY_FX_WATCHDOG_PERIOD.
The WdClearTimer timer will generate a Callback WatchDogTimerClearCb,which is defined as: