diff options
author | Damien George <damien.p.george@gmail.com> | 2016-09-06 14:20:19 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-09-06 14:20:19 +1000 |
commit | 9103cbe36629b121b1a8a927b3fa199c6ee5ddf3 (patch) | |
tree | 420189f7ef36397b9a0e6d2f6b8d5f925f9fe5ba /stmhal/main.c | |
parent | b88bf6c76b9105110b7b2befe77ad58b90be8097 (diff) |
stmhal/modmachine: Implement machine.reset_cause() function, and consts.
Diffstat (limited to 'stmhal/main.c')
-rw-r--r-- | stmhal/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stmhal/main.c b/stmhal/main.c index 32baae532..244622503 100644 --- a/stmhal/main.c +++ b/stmhal/main.c @@ -44,6 +44,7 @@ #include "pendsv.h" #include "gccollect.h" #include "readline.h" +#include "modmachine.h" #include "i2c.h" #include "spi.h" #include "uart.h" @@ -410,6 +411,8 @@ soft_reset: led_state(4, 0); uint reset_mode = update_reset_mode(1); + machine_init(); + #if MICROPY_HW_ENABLE_RTC if (first_soft_reset) { rtc_init_start(false); |