diff options
| author | Damien George | 2019-01-11 01:51:57 +1100 |
|---|---|---|
| committer | Damien George | 2019-01-11 01:51:57 +1100 |
| commit | 5b66c7b712daf67814698a87f108db9e2722f5e9 (patch) | |
| tree | 4fc45c691bd4a554c4033ca8da49b98d3d6216ab | |
| parent | 529dcce2be613d48b77d72fd3c2e8f17ebfaebe5 (diff) | |
stm32/wdt: Make singleton WDT object const so it goes in ROM.
| -rw-r--r-- | ports/stm32/wdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/wdt.c b/ports/stm32/wdt.c index 0759ed8e3..3cfbd7f2e 100644 --- a/ports/stm32/wdt.c +++ b/ports/stm32/wdt.c @@ -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 |
