Skip to content

Commit fc7af71

Browse files
committed
Merge branch 'dev-deepsleep' of github.com:MrSurly/micropython-esp32 into dev-deepsleep
2 parents 778b9cb + 8a3e39f commit fc7af71

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

ports/esp32/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ SRC_C = \
140140
modesp.c \
141141
moduhashlib.c \
142142
espneopixel.c \
143+
machine_rtc.c \
143144
machine_hw_spi.c \
144145
machine_wdt.c \
145146
mpthreadport.c \
@@ -242,7 +243,6 @@ ESPIDF_ESP32_O = $(addprefix $(ESPCOMP)/esp32/,\
242243
intr_alloc.o \
243244
dport_access.o \
244245
wifi_init.o \
245-
wifi_internal.o \
246246
sleep_modes.o \
247247
)
248248

ports/esp32/modmachine.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ STATIC const mp_rom_map_elem_t machine_module_globals_table[] = {
146146

147147
{ MP_ROM_QSTR(MP_QSTR_freq), MP_ROM_PTR(&machine_freq_obj) },
148148
{ MP_ROM_QSTR(MP_QSTR_reset), MP_ROM_PTR(&machine_reset_obj) },
149+
{ MP_ROM_QSTR(MP_QSTR_deepsleep), MP_ROM_PTR(&machine_deepsleep_obj) },
149150
{ MP_ROM_QSTR(MP_QSTR_unique_id), MP_ROM_PTR(&machine_unique_id_obj) },
150151
{ MP_ROM_QSTR(MP_QSTR_deepsleep), MP_ROM_PTR(&machine_deepsleep_obj) },
151152
{ MP_ROM_QSTR(MP_QSTR_idle), MP_ROM_PTR(&machine_idle_obj) },
@@ -166,6 +167,7 @@ STATIC const mp_rom_map_elem_t machine_module_globals_table[] = {
166167
{ MP_ROM_QSTR(MP_QSTR_ADC), MP_ROM_PTR(&machine_adc_type) },
167168
{ MP_ROM_QSTR(MP_QSTR_DAC), MP_ROM_PTR(&machine_dac_type) },
168169
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&machine_i2c_type) },
170+
{ MP_ROM_QSTR(MP_QSTR_RTC), MP_ROM_PTR(&machine_rtc_type) },
169171
{ MP_ROM_QSTR(MP_QSTR_PWM), MP_ROM_PTR(&machine_pwm_type) },
170172
{ MP_ROM_QSTR(MP_QSTR_RTC), MP_ROM_PTR(&machine_rtc_type) },
171173
{ MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&mp_machine_soft_spi_type) },

ports/esp32/modmachine.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ extern const mp_obj_type_t machine_pin_type;
99
extern const mp_obj_type_t machine_touchpad_type;
1010
extern const mp_obj_type_t machine_adc_type;
1111
extern const mp_obj_type_t machine_dac_type;
12+
extern const mp_obj_type_t machine_rtc_type;
1213
extern const mp_obj_type_t machine_pwm_type;
1314
extern const mp_obj_type_t machine_hw_spi_type;
1415
extern const mp_obj_type_t machine_uart_type;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy