summaryrefslogtreecommitdiff
path: root/py/asmx86.c
diff options
context:
space:
mode:
authorrobert-hh <robert@hammelrath.com>2021-09-12 16:44:24 +0200
committerDamien George <damien@micropython.org>2021-10-25 15:43:56 +1100
commitc2e4759cfaa4080356424b2602d90085a99bfb2b (patch)
tree70f1ca1a23c88a4eb2dafa32a9a6413ed11f5344 /py/asmx86.c
parent1866ed7e2ef9a2786aa5cc93dd435ffc8dcce2a3 (diff)
mimxrt/modmachine: Implement machine.WDT() and machine.reset_cause().
The API follows that of rp2, stm32, esp32, and the docs. wdt=machine.WDT(0, timeout) Timeout is given in ms. The valid range is 500 to 128000 (128 seconds) with 500 ms granularity. Values outside of that range will be silently aligned. wdt.feed() Resets the watchdog timer (feeding). wdt.timeout_ms(value) Sets a new timeout and feeds the watchdog. This is a new, preliminary method which is not yet documented. reset_cause = machine.reset_cause() Values returned: 1 Power On reset 3 Watchdog reset 5 Software reset: state after calling machine.reset() More elaborate API functions are supported by the MCU, like an interrupt called a certain time after feeding. But for port cosistency that is not implemented.
Diffstat (limited to 'py/asmx86.c')
0 files changed, 0 insertions, 0 deletions