diff options
| author | Lucian Copeland <hierophect@gmail.com> | 2021-02-01 11:11:49 -0500 |
|---|---|---|
| committer | Lucian Copeland <hierophect@gmail.com> | 2021-02-01 11:43:01 -0500 |
| commit | 66639b237fa4428037cbed0bb87fdb4061127c91 (patch) | |
| tree | 6d530a1c4974d326ba1e7dd80b675854fd5bfe57 /ports/raspberrypi/common-hal/microcontroller/__init__.c | |
| parent | 8277ffca861754b4df526c62126337c195cc0fee (diff) | |
| parent | 0c0b517112100c1ec90ed66fba8bc315bc5440d0 (diff) | |
Merge remote-tracking branch 'upstream/main' into sslsocket
Diffstat (limited to 'ports/raspberrypi/common-hal/microcontroller/__init__.c')
| -rw-r--r-- | ports/raspberrypi/common-hal/microcontroller/__init__.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ports/raspberrypi/common-hal/microcontroller/__init__.c b/ports/raspberrypi/common-hal/microcontroller/__init__.c index e454ffa1b..774e313bb 100644 --- a/ports/raspberrypi/common-hal/microcontroller/__init__.c +++ b/ports/raspberrypi/common-hal/microcontroller/__init__.c @@ -112,6 +112,17 @@ const nvm_bytearray_obj_t common_hal_mcu_nvm_obj = { }; #endif +#if CIRCUITPY_WATCHDOG +// The singleton watchdog.WatchDogTimer object. +watchdog_watchdogtimer_obj_t common_hal_mcu_watchdogtimer_obj = { + .base = { + .type = &watchdog_watchdogtimer_type, + }, + .timeout = 0.0f, + .mode = WATCHDOGMODE_NONE, +}; +#endif + // This maps MCU pin names to pin objects. const mp_rom_map_elem_t mcu_pin_global_dict_table[TOTAL_GPIO_COUNT] = { { MP_ROM_QSTR(MP_QSTR_GPIO0), MP_ROM_PTR(&pin_GPIO0) }, |
