WATCHDOG
- group WATCHDOG
The watchdog driver allows setting a watchdog timer to reset the chip in case it gets stuck
Functions
-
PI_WATCHDOG_INLINE0 uint8_t pi_watchdog_timer_set(uint32_t us)
Set watchdog timer.
This function sets the watchdog timer (in micro seconds). Clock is the refclk.
Note
The limit of the timer depends on the ref clock value.
- Parameters:
us – Timer in micro seconds
- Return values:
0 – if timer has been set
1 – if timer value is bigger than the limit
-
PI_WATCHDOG_INLINE0 void pi_watchdog_start(void)
Start watchdog timer.
This function start the countdown of the timer
-
PI_WATCHDOG_INLINE0 void pi_watchdog_timer_rearm(void)
Restart watchdog timer.
This function rearm (at the set us value) the countdown of the timer. You have to start it again to launch the countdown.
-
PI_WATCHDOG_INLINE0 void pi_watchdog_stop(void)
Stop watchdog timer.
This function stops the countdown of the timer.
-
PI_WATCHDOG_INLINE0 uint8_t pi_watchdog_timer_set(uint32_t us)