summaryrefslogtreecommitdiff
path: root/ports/cxd56
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2020-12-02 13:10:39 -0800
committerScott Shawcroft <scott@tannewt.org>2020-12-02 13:10:39 -0800
commit608c98501bb90e02a480b2d84032a46f9a4d0737 (patch)
treeadea018a0c0e714ef33b79a306b69885568b6ad0 /ports/cxd56
parent34bbcc4910014c3b4646d8005baf8244bac51f03 (diff)
parentd7ba641ff646b48e5ad38ff72a2dcfe17bb54624 (diff)
Merge remote-tracking branch 'adafruit/main' into msgpack
Diffstat (limited to 'ports/cxd56')
-rw-r--r--ports/cxd56/common-hal/microcontroller/Processor.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ports/cxd56/common-hal/microcontroller/Processor.c b/ports/cxd56/common-hal/microcontroller/Processor.c
index 1eddbb01d..3cb187de6 100644
--- a/ports/cxd56/common-hal/microcontroller/Processor.c
+++ b/ports/cxd56/common-hal/microcontroller/Processor.c
@@ -31,6 +31,7 @@
// For NAN: remove when not needed.
#include <math.h>
#include "py/mphal.h"
+#include "shared-bindings/microcontroller/ResetReason.h"
uint32_t common_hal_mcu_processor_get_frequency(void) {
return cxd56_get_cpu_baseclk();
@@ -47,3 +48,7 @@ float common_hal_mcu_processor_get_voltage(void) {
void common_hal_mcu_processor_get_uid(uint8_t raw_id[]) {
boardctl(BOARDIOC_UNIQUEID, (uintptr_t) raw_id);
}
+
+mcu_reset_reason_t common_hal_mcu_processor_get_reset_reason(void) {
+ return RESET_REASON_UNKNOWN;
+}