Skip to content

Commit 046d15f

Browse files
committed
esp32: Changes to follow latest version of upstream uPy.
1 parent 17aa9a2 commit 046d15f

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

esp32/Makefile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ SRC_C = \
120120
mphalport.c \
121121
fatfs_port.c \
122122
help.c \
123-
esponewire.c \
124123
modutime.c \
125124
moduos.c \
126125
machine_timer.c \
@@ -140,11 +139,8 @@ SRC_C = \
140139
mpthreadport.c \
141140
$(SRC_MOD)
142141

143-
ESP8266_SRC_C = $(addprefix esp8266/,\
144-
modonewire.c \
145-
)
146-
147142
EXTMOD_SRC_C = $(addprefix extmod/,\
143+
modonewire.c \
148144
)
149145

150146
LIB_SRC_C = $(addprefix lib/,\
@@ -187,13 +183,12 @@ DRIVERS_SRC_C = $(addprefix drivers/,\
187183
OBJ_MP =
188184
OBJ_MP += $(PY_O)
189185
OBJ_MP += $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
190-
OBJ_MP += $(addprefix $(BUILD)/, $(ESP8266_SRC_C:.c=.o))
191186
OBJ_MP += $(addprefix $(BUILD)/, $(EXTMOD_SRC_C:.c=.o))
192187
OBJ_MP += $(addprefix $(BUILD)/, $(LIB_SRC_C:.c=.o))
193188
OBJ_MP += $(addprefix $(BUILD)/, $(DRIVERS_SRC_C:.c=.o))
194189

195190
# List of sources for qstr extraction
196-
SRC_QSTR += $(SRC_C) $(ESP8266_SRC_C) $(EXTMOD_SRC_C) $(LIB_SRC_C) $(DRIVERS_SRC_C)
191+
SRC_QSTR += $(SRC_C) $(EXTMOD_SRC_C) $(LIB_SRC_C) $(DRIVERS_SRC_C)
197192
# Append any auto-generated sources that are needed by sources listed in SRC_QSTR
198193
SRC_QSTR_AUTO_DEPS +=
199194

esp32/mpconfigport.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,21 +160,21 @@
160160

161161
// extra built in modules to add to the list of known ones
162162
extern const struct _mp_obj_module_t esp_module;
163-
extern const struct _mp_obj_module_t onewire_module;
164163
extern const struct _mp_obj_module_t utime_module;
165164
extern const struct _mp_obj_module_t uos_module;
166165
extern const struct _mp_obj_module_t mp_module_usocket;
167166
extern const struct _mp_obj_module_t mp_module_machine;
168167
extern const struct _mp_obj_module_t mp_module_network;
168+
extern const struct _mp_obj_module_t mp_module_onewire;
169169

170170
#define MICROPY_PORT_BUILTIN_MODULES \
171171
{ MP_OBJ_NEW_QSTR(MP_QSTR_esp), (mp_obj_t)&esp_module }, \
172-
{ MP_OBJ_NEW_QSTR(MP_QSTR__onewire), (mp_obj_t)&onewire_module }, \
173172
{ MP_OBJ_NEW_QSTR(MP_QSTR_utime), (mp_obj_t)&utime_module }, \
174173
{ MP_OBJ_NEW_QSTR(MP_QSTR_uos), (mp_obj_t)&uos_module }, \
175174
{ MP_OBJ_NEW_QSTR(MP_QSTR_usocket), (mp_obj_t)&mp_module_usocket }, \
176175
{ MP_OBJ_NEW_QSTR(MP_QSTR_machine), (mp_obj_t)&mp_module_machine }, \
177176
{ MP_OBJ_NEW_QSTR(MP_QSTR_network), (mp_obj_t)&mp_module_network }, \
177+
{ MP_OBJ_NEW_QSTR(MP_QSTR__onewire), (mp_obj_t)&mp_module_onewire }, \
178178

179179
#define MICROPY_PORT_BUILTIN_MODULE_WEAK_LINKS \
180180
{ MP_OBJ_NEW_QSTR(MP_QSTR_binascii), (mp_obj_t)&mp_module_ubinascii }, \

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