spresense: Fix time.time()

This commit is contained in:
Kamil Tomaszewski 2021-11-30 12:38:48 +01:00
parent 8d6957b792
commit 9a8d8b1bf1
2 changed files with 7 additions and 1 deletions

View File

@ -33,8 +33,9 @@
#include "sched/sched.h"
#include "supervisor/board.h"
#include "shared-bindings/rtc/__init__.h"
#include "supervisor/board.h"
#include "supervisor/port.h"
#include "supervisor/background_callback.h"
#include "supervisor/usb.h"
@ -90,6 +91,9 @@ void reset_port(void) {
#if CIRCUITPY_BUSIO
busio_uart_reset();
#endif
#if CIRCUITPY_RTC
rtc_reset();
#endif
reset_all_pins();
}

View File

@ -27,6 +27,8 @@
#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_RTC___INIT___H
#define MICROPY_INCLUDED_SHARED_BINDINGS_RTC___INIT___H
#include "py/obj.h"
extern void rtc_reset(void);
extern mp_obj_t rtc_get_time_source_time(void);