summaryrefslogtreecommitdiff
path: root/ports/stm/common-hal/microcontroller/Processor.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/stm/common-hal/microcontroller/Processor.c')
-rw-r--r--ports/stm/common-hal/microcontroller/Processor.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/ports/stm/common-hal/microcontroller/Processor.c b/ports/stm/common-hal/microcontroller/Processor.c
index 8dc968b36..dd04c56dc 100644
--- a/ports/stm/common-hal/microcontroller/Processor.c
+++ b/ports/stm/common-hal/microcontroller/Processor.c
@@ -25,9 +25,12 @@
*/
#include <math.h>
-#include "common-hal/microcontroller/Processor.h"
#include "py/runtime.h"
+
+#include "common-hal/microcontroller/Processor.h"
+#include "shared-bindings/microcontroller/ResetReason.h"
#include "supervisor/shared/translate.h"
+
#include STM32_HAL_H
#if CPY_STM32F4
@@ -138,3 +141,7 @@ void common_hal_mcu_processor_get_uid(uint8_t raw_id[]) {
}
#endif
}
+
+mcu_reset_reason_t common_hal_mcu_processor_get_reset_reason(void) {
+ return RESET_REASON_UNKNOWN;
+}