rp2/machine_wdt: Check for the maximum timeout value of watchdog.
The value will be checked for timeout <= 8388. Notes were added to the documentation.
This commit is contained in:
@@ -15,7 +15,7 @@ Example usage::
|
||||
wdt = WDT(timeout=2000) # enable it with a timeout of 2s
|
||||
wdt.feed()
|
||||
|
||||
Availability of this class: pyboard, WiPy, esp8266, esp32.
|
||||
Availability of this class: pyboard, WiPy, esp8266, esp32, rp2040, mimxrt.
|
||||
|
||||
Constructors
|
||||
------------
|
||||
@@ -26,7 +26,8 @@ Constructors
|
||||
Once it is running the timeout cannot be changed and the WDT cannot be stopped either.
|
||||
|
||||
Notes: On the esp32 the minimum timeout is 1 second. On the esp8266 a timeout
|
||||
cannot be specified, it is determined by the underlying system.
|
||||
cannot be specified, it is determined by the underlying system. On rp2040 devices,
|
||||
the maximum timeout is 8388 ms.
|
||||
|
||||
Methods
|
||||
-------
|
||||
|
||||
@@ -296,6 +296,7 @@ See :ref:`machine.WDT <machine.WDT>`. ::
|
||||
wdt = WDT(timeout=5000)
|
||||
wdt.feed()
|
||||
|
||||
The maximum value for timeout is 8388 ms.
|
||||
|
||||
OneWire driver
|
||||
--------------
|
||||
|
||||
Reference in New Issue
Block a user