summaryrefslogtreecommitdiff
path: root/docs/library
diff options
context:
space:
mode:
authorDaniel Campora <daniel@wipy.io>2015-09-13 17:06:12 +0200
committerDaniel Campora <daniel@wipy.io>2015-09-16 10:10:29 +0200
commit41f6948545c8f5909413badbef2dcd5794598bf0 (patch)
tree312b4f2024d943560844c1ca0fc5c59a6c588155 /docs/library
parent8332044f754aa0743fb38404dae55508a0550e6a (diff)
cc3200: New WDT API.
Diffstat (limited to 'docs/library')
-rw-r--r--docs/library/pyb.WDT.rst19
1 files changed, 9 insertions, 10 deletions
diff --git a/docs/library/pyb.WDT.rst b/docs/library/pyb.WDT.rst
index 9728e7bca..867026b32 100644
--- a/docs/library/pyb.WDT.rst
+++ b/docs/library/pyb.WDT.rst
@@ -10,24 +10,23 @@ watchdog periodically to prevent it from expiring and resetting the system.
Example usage::
- wdt = pyb.WDT(5000) # enable with a timeout of 5s
- wdt.kick()
+ wdt = pyb.WDT(timeout=2000) # enable with a timeout of 2s
+ wdt.feed()
Constructors
------------
-.. class:: pyb.WDT([timeout])
+.. class:: pyb.WDT(id=0, timeout=5000)
- Create a WDT object. If the timeout is specified the WDT is started.
- The timeout must be given in seconds and 1s the minimum value that
- is accepted. Once it is running the timeout cannot be changed and
- the WDT cannot be stopped either.
+ Create a WDT object and start it. The timeout must be given in seconds and
+ the minimum value that is accepted is 1 second. Once it is running the timeout
+ cannot be changed and the WDT cannot be stopped either.
Methods
-------
-.. method:: wdt.kick()
+.. method:: wdt.feed()
- Kick the WDT to prevent it from resetting the system. The application
+ Feed the WDT to prevent it from resetting the system. The application
should place this call in a sensible place ensuring that the WDT is
- only kicked after verifying that everything is functioning correctly.
+ only fed after verifying that everything is functioning correctly.