mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
stm32/wdt: Make singleton WDT object const so it goes in ROM.
This commit is contained in:
@@ -37,7 +37,7 @@ typedef struct _pyb_wdt_obj_t {
|
||||
mp_obj_base_t base;
|
||||
} pyb_wdt_obj_t;
|
||||
|
||||
STATIC pyb_wdt_obj_t pyb_wdt = {{&pyb_wdt_type}};
|
||||
STATIC const pyb_wdt_obj_t pyb_wdt = {{&pyb_wdt_type}};
|
||||
|
||||
STATIC mp_obj_t pyb_wdt_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *all_args) {
|
||||
// parse arguments
|
||||
|
||||
Reference in New Issue
Block a user