From 9103cbe36629b121b1a8a927b3fa199c6ee5ddf3 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 6 Sep 2016 14:20:19 +1000 Subject: stmhal/modmachine: Implement machine.reset_cause() function, and consts. --- stmhal/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'stmhal/main.c') 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); -- cgit v1.2.3