@@ -48,24 +48,6 @@ static mp_obj_t watchdog_watchdogtimer_feed(mp_obj_t self_in) {
48
48
}
49
49
static MP_DEFINE_CONST_FUN_OBJ_1 (watchdog_watchdogtimer_feed_obj , watchdog_watchdogtimer_feed ) ;
50
50
51
- //| def deinit(self) -> None:
52
- //| """Stop the watchdog timer.
53
- //|
54
- //| :raises RuntimeError: if the watchdog timer cannot be disabled on this platform.
55
- //|
56
- //| .. note:: This is deprecated in ``9.0.0`` and will be removed in ``10.0.0``.
57
- //| Set watchdog `mode` to `None` instead.
58
- //|
59
- //| """
60
- //| ...
61
- //|
62
- static mp_obj_t watchdog_watchdogtimer_deinit (mp_obj_t self_in ) {
63
- watchdog_watchdogtimer_obj_t * self = MP_OBJ_TO_PTR (self_in );
64
- common_hal_watchdog_deinit (self );
65
- return mp_const_none ;
66
- }
67
- static MP_DEFINE_CONST_FUN_OBJ_1 (watchdog_watchdogtimer_deinit_obj , watchdog_watchdogtimer_deinit ) ;
68
-
69
51
//| timeout: float
70
52
//| """The maximum number of seconds that can elapse between calls
71
53
//| to `feed()`. Setting the timeout will also feed the watchdog."""
@@ -126,7 +108,6 @@ MP_PROPERTY_GETSET(watchdog_watchdogtimer_mode_obj,
126
108
127
109
static const mp_rom_map_elem_t watchdog_watchdogtimer_locals_dict_table [] = {
128
110
{ MP_ROM_QSTR (MP_QSTR_feed ), MP_ROM_PTR (& watchdog_watchdogtimer_feed_obj ) },
129
- { MP_ROM_QSTR (MP_QSTR_deinit ), MP_ROM_PTR (& watchdog_watchdogtimer_deinit_obj ) },
130
111
{ MP_ROM_QSTR (MP_QSTR_timeout ), MP_ROM_PTR (& watchdog_watchdogtimer_timeout_obj ) },
131
112
{ MP_ROM_QSTR (MP_QSTR_mode ), MP_ROM_PTR (& watchdog_watchdogtimer_mode_obj ) },
132
113
};
0 commit comments