You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/rp2_common/hardware_watchdog/include/hardware/watchdog.h
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -74,14 +74,21 @@ void watchdog_update(void);
74
74
* \note If \ref watchdog_start_tick value does not give a 1MHz clock to the watchdog system, then the \p delay_ms
75
75
* parameter will not be in milliseconds. See the datasheet for more details.
76
76
*
77
+
* \if rp2040_specific
78
+
* On RP2040 the maximum delay is 8388 milliseconds, which is approximately 8.3 seconds (this is due to RP2040-E1).
79
+
* \endif
80
+
* \if rp2350_specific
81
+
* On RP2350 the maximum delay is 16777 milliseconds, which is approximately 16.7 seconds.
82
+
* \endif
83
+
*
77
84
* By default the SDK assumes a 12MHz XOSC and sets the \ref watchdog_start_tick appropriately.
78
85
*
79
86
* This method sets a marker in the watchdog scratch register 4 that is checked by \ref watchdog_enable_caused_reboot.
80
87
* If the device is subsequently reset via a call to watchdog_reboot (including for example by dragging a UF2
81
88
* onto the RPI-RP2), then this value will be cleared, and so \ref watchdog_enable_caused_reboot will
82
89
* return false.
83
90
*
84
-
* \param delay_ms Number of milliseconds before watchdog will reboot without watchdog_update being called. Maximum of 8388, which is approximately 8.3 seconds
91
+
* \param delay_ms Number of milliseconds before watchdog will reboot without watchdog_update being called
85
92
* \param pause_on_debug If the watchdog should be paused when the debugger is stepping through code
0 commit comments