micropython/ports/cc3200/mods
Damien George 60929ec7e2 extmod/machine_wdt: Factor ports' WDT Python bindings to common code.
There are currently 7 ports that implement machine.WDT and a lot of code is
duplicated across these implementations.  This commit factors the common
parts of all these implementations to a single location in
extmod/machine_wdt.c.  This common code provides the top-level Python
bindings (class and method wrappers), and then each port implements the
back end specific to that port.

With this refactor the ports remain functionally the same except for:

- The esp8266 WDT constructor now takes keyword arguments, and accepts the
  "timeout" argument but raises an exception if it's not the default value
  (this port doesn't support changing the timeout).

- The mimxrt and samd ports now interpret the argument to WDT.timeout_ms()
  as signed and if it's negative truncate it to the minimum timeout (rather
  than it being unsigned and a negative value truncating to the maximum
  timeout).

Signed-off-by: Damien George <damien@micropython.org>
2023-10-20 15:36:09 +11:00
..
machine_wdt.c extmod/machine_wdt: Factor ports' WDT Python bindings to common code. 2023-10-20 15:36:09 +11:00
modhashlib.c all: Rename *umodule*.c to remove the "u" prefix. 2023-06-08 17:54:17 +10:00
modmachine.c extmod/machine_wdt: Factor ports' WDT Python bindings to common code. 2023-10-20 15:36:09 +11:00
modnetwork.c py/obj: Convert make_new into a mp_obj_type_t slot. 2022-09-19 19:06:15 +10:00
modnetwork.h cc3200: Remove unused NIC type customisation. 2022-12-15 17:40:18 +11:00
modos.c all: Use MP_REGISTER_EXTENSIBLE_MODULE for overrideable built-ins. 2023-06-08 17:54:21 +10:00
modos.h all: Rename *umodule*.h to remove the "u" prefix. 2023-06-08 17:54:14 +10:00
modsocket.c all: Use MP_REGISTER_EXTENSIBLE_MODULE for overrideable built-ins. 2023-06-08 17:54:21 +10:00
modsocket.h all: Rename *umodule*.h to remove the "u" prefix. 2023-06-08 17:54:14 +10:00
modssl.c all: Use MP_REGISTER_EXTENSIBLE_MODULE for overrideable built-ins. 2023-06-08 17:54:21 +10:00
modtime.c all: Rename *umodule*.c to remove the "u" prefix. 2023-06-08 17:54:17 +10:00
modwipy.c all: Remove third argument to MP_REGISTER_MODULE. 2022-06-02 16:31:37 +10:00
modwlan.c all: Rename *umodule*.h to remove the "u" prefix. 2023-06-08 17:54:14 +10:00
modwlan.h ports: Make new ports/ sub-directory and move all ports there. 2017-09-06 13:40:51 +10:00
pybadc.c py/obj: Convert make_new into a mp_obj_type_t slot. 2022-09-19 19:06:15 +10:00
pybadc.h ports: Make new ports/ sub-directory and move all ports there. 2017-09-06 13:40:51 +10:00
pybflash.c py/obj: Convert make_new into a mp_obj_type_t slot. 2022-09-19 19:06:15 +10:00
pybflash.h ports: Make new ports/ sub-directory and move all ports there. 2017-09-06 13:40:51 +10:00
pybi2c.c py/obj: Convert make_new into a mp_obj_type_t slot. 2022-09-19 19:06:15 +10:00
pybi2c.h ports: Make new ports/ sub-directory and move all ports there. 2017-09-06 13:40:51 +10:00
pybpin.c all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
pybpin.h ports: Make new ports/ sub-directory and move all ports there. 2017-09-06 13:40:51 +10:00
pybrtc.c all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
pybrtc.h ports: Make new ports/ sub-directory and move all ports there. 2017-09-06 13:40:51 +10:00
pybsd.c all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
pybsd.h ports: Make new ports/ sub-directory and move all ports there. 2017-09-06 13:40:51 +10:00
pybsleep.c all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
pybsleep.h ports: Make new ports/ sub-directory and move all ports there. 2017-09-06 13:40:51 +10:00
pybspi.c py/obj: Convert make_new into a mp_obj_type_t slot. 2022-09-19 19:06:15 +10:00
pybspi.h ports: Make new ports/ sub-directory and move all ports there. 2017-09-06 13:40:51 +10:00
pybtimer.c py/obj: Convert make_new into a mp_obj_type_t slot. 2022-09-19 19:06:15 +10:00
pybtimer.h ports: Make new ports/ sub-directory and move all ports there. 2017-09-06 13:40:51 +10:00
pybuart.c all: Rename *umodule*.h to remove the "u" prefix. 2023-06-08 17:54:14 +10:00
pybuart.h ports: Make new ports/ sub-directory and move all ports there. 2017-09-06 13:40:51 +10:00
pybwdt.h extmod/machine_wdt: Factor ports' WDT Python bindings to common code. 2023-10-20 15:36:09 +11:00