<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/shared-bindings/watchdog, branch master</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=master</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2020-05-27T17:58:21+00:00</updated>
<entry>
<title>Remove NONE from mode enum and doc tweaks</title>
<updated>2020-05-27T17:58:21+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2020-05-27T17:58:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1ed4978620091179dbb082f1848bc221eb6d09bf'/>
<id>urn:sha1:1ed4978620091179dbb082f1848bc221eb6d09bf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>watchdog: use common_hal_watchdog_* pattern</title>
<updated>2020-05-27T03:38:29+00:00</updated>
<author>
<name>Sean Cross</name>
<email>sean@xobs.io</email>
</author>
<published>2020-05-27T03:25:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=aac5a4f178f311eb2aaf7d58135e9df49f80f7c4'/>
<id>urn:sha1:aac5a4f178f311eb2aaf7d58135e9df49f80f7c4</id>
<content type='text'>
This pulls all common functionality into `shared-bindings` and keeps
platform-specific code inside `nrf`. Additionally, this performs most
validation in the `shared-bindings` site.

The only validation that occurs inside platform-specific `common-hal`
code is related to timeout limits that are platform-specific.

Additionally, all documentation is now inside the `shared-bindings`
directory.

Signed-off-by: Sean Cross &lt;sean@xobs.io&gt;
</content>
</entry>
<entry>
<title>watchdog: support catching the timeout</title>
<updated>2020-05-27T03:28:50+00:00</updated>
<author>
<name>Sean Cross</name>
<email>sean@xobs.io</email>
</author>
<published>2020-05-27T02:21:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=dbf1bef56ab3a7ce73388c9833c9aa5a4074eb24'/>
<id>urn:sha1:dbf1bef56ab3a7ce73388c9833c9aa5a4074eb24</id>
<content type='text'>
With this patch, the exception can now be caught:

    import microcontroller
    import watchdog
    import time

    wdt = microcontroller.watchdog
    wdt.timeout = 5

    while True:
        wdt.mode = watchdog.WatchDogMode.RAISE
        print("Starting loop -- should exit after five seconds")
        try:
            while True:
                time.sleep(10)
                # pass # This also works for a spinloop
        except watchdog.WatchDogTimeout as e:
            print("Watchdog Expired (PASS)")
        except Exception as e:
            print("Other exception (FAIL)")
    print("Exited loop")

This prints:

    Starting loop -- should exit after five seconds
    Watchdog Expired (PASS)
    Starting loop -- should exit after five seconds
    Watchdog Expired (PASS)
    Starting loop -- should exit after five seconds
    Watchdog Expired (PASS)

Signed-off-by: Sean Cross &lt;sean@xobs.io&gt;
</content>
</entry>
<entry>
<title>watchdog: move timeout exception to shared-bindings</title>
<updated>2020-05-27T03:28:49+00:00</updated>
<author>
<name>Sean Cross</name>
<email>sean@xobs.io</email>
</author>
<published>2020-05-22T10:52:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c7efc94a336091a1e6d79e94a9e80b31e5d5fc3f'/>
<id>urn:sha1:c7efc94a336091a1e6d79e94a9e80b31e5d5fc3f</id>
<content type='text'>
Make this exception globally available to all platforms that have
enabled the watchdog timer.

Signed-off-by: Sean Cross &lt;sean@xobs.io&gt;
</content>
</entry>
<entry>
<title>watchdogtimer: refactor to new api</title>
<updated>2020-05-27T03:28:49+00:00</updated>
<author>
<name>Sean Cross</name>
<email>sean@xobs.io</email>
</author>
<published>2020-05-22T04:35:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=08362c9cabce24ffdc2bd6018ab7fc3e9e6e4801'/>
<id>urn:sha1:08362c9cabce24ffdc2bd6018ab7fc3e9e6e4801</id>
<content type='text'>
This refactors the WatchDogTimer API to use the format proposed in
https://github.com/adafruit/circuitpython/pull/2933#issuecomment-632268227

Signed-off-by: Sean Cross &lt;sean@xobs.io&gt;
</content>
</entry>
<entry>
<title>watchdog: fix documentation build error</title>
<updated>2020-05-27T03:28:49+00:00</updated>
<author>
<name>Sean Cross</name>
<email>sean@xobs.io</email>
</author>
<published>2020-05-21T10:38:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=87737fb50ac23760ad11f5d23d87dd9020ab5f20'/>
<id>urn:sha1:87737fb50ac23760ad11f5d23d87dd9020ab5f20</id>
<content type='text'>
Signed-off-by: Sean Cross &lt;sean@xobs.io&gt;
</content>
</entry>
<entry>
<title>watchdog: rename module from `wdt` and move to `microcontroller`</title>
<updated>2020-05-27T03:28:49+00:00</updated>
<author>
<name>Sean Cross</name>
<email>sean@xobs.io</email>
</author>
<published>2020-05-21T05:47:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=595f6387c2a4f1c919cfab80b07493820ac0051b'/>
<id>urn:sha1:595f6387c2a4f1c919cfab80b07493820ac0051b</id>
<content type='text'>
This also places it under the `microcontroller` object.

Signed-off-by: Sean Cross &lt;sean@xobs.io&gt;
</content>
</entry>
</feed>
