Skip to content

Commit 9a8d8b1

Browse files
committed
spresense: Fix time.time()
1 parent 8d6957b commit 9a8d8b1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ports/cxd56/supervisor/port.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@
3333

3434
#include "sched/sched.h"
3535

36-
#include "supervisor/board.h"
36+
#include "shared-bindings/rtc/__init__.h"
3737

38+
#include "supervisor/board.h"
3839
#include "supervisor/port.h"
3940
#include "supervisor/background_callback.h"
4041
#include "supervisor/usb.h"
@@ -90,6 +91,9 @@ void reset_port(void) {
9091
#if CIRCUITPY_BUSIO
9192
busio_uart_reset();
9293
#endif
94+
#if CIRCUITPY_RTC
95+
rtc_reset();
96+
#endif
9397

9498
reset_all_pins();
9599
}

shared-bindings/rtc/__init__.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_RTC___INIT___H
2828
#define MICROPY_INCLUDED_SHARED_BINDINGS_RTC___INIT___H
2929

30+
#include "py/obj.h"
31+
3032
extern void rtc_reset(void);
3133
extern mp_obj_t rtc_get_time_source_time(void);
3234

0 commit comments

Comments
 (0)