Skip to content

Commit 6ff0ecf

Browse files
committed
ports: Convert from using stmhal's input() to core provided version.
1 parent bc76302 commit 6ff0ecf

File tree

9 files changed

+4
-52
lines changed

9 files changed

+4
-52
lines changed

cc3200/application.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ APP_LIB_SRC_C = $(addprefix lib/,\
151151

152152
APP_STM_SRC_C = $(addprefix stmhal/,\
153153
bufhelper.c \
154-
input.c \
155154
irq.c \
156155
pybstdio.c \
157156
)

cc3200/mpconfigport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
#define MICROPY_VFS_FAT (1)
8181
#define MICROPY_PY_ASYNC_AWAIT (0)
8282
#define MICROPY_PY_ALL_SPECIAL_METHODS (1)
83+
#define MICROPY_PY_BUILTINS_INPUT (1)
8384
#define MICROPY_PY_BUILTINS_HELP (1)
8485
#define MICROPY_PY_BUILTINS_HELP_TEXT cc3200_help_text
8586
#ifndef DEBUG
@@ -142,7 +143,6 @@
142143

143144
// extra built in names to add to the global namespace
144145
#define MICROPY_PORT_BUILTINS \
145-
{ MP_OBJ_NEW_QSTR(MP_QSTR_input), (mp_obj_t)&mp_builtin_input_obj }, \
146146
{ MP_OBJ_NEW_QSTR(MP_QSTR_open), (mp_obj_t)&mp_builtin_open_obj }, \
147147

148148
// extra built in modules to add to the list of known ones

esp8266/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ SRC_C = \
9494

9595
STM_SRC_C = $(addprefix stmhal/,\
9696
pybstdio.c \
97-
input.c \
9897
)
9998

10099
EXTMOD_SRC_C = $(addprefix extmod/,\

esp8266/mpconfigport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
#define MICROPY_PY_BUILTINS_SLICE (1)
4040
#define MICROPY_PY_BUILTINS_SLICE_ATTRS (1)
4141
#define MICROPY_PY_BUILTINS_PROPERTY (1)
42+
#define MICROPY_PY_BUILTINS_INPUT (1)
4243
#define MICROPY_PY_BUILTINS_HELP (1)
4344
#define MICROPY_PY_BUILTINS_HELP_TEXT esp_help_text
4445
#define MICROPY_PY_BUILTINS_HELP_MODULES (1)
@@ -147,7 +148,6 @@ void *esp_native_code_commit(void*, size_t);
147148

148149
// extra built in names to add to the global namespace
149150
#define MICROPY_PORT_BUILTINS \
150-
{ MP_OBJ_NEW_QSTR(MP_QSTR_input), (mp_obj_t)&mp_builtin_input_obj }, \
151151
{ MP_OBJ_NEW_QSTR(MP_QSTR_open), (mp_obj_t)&mp_builtin_open_obj },
152152

153153
// extra built in modules to add to the list of known ones

stmhal/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ SRC_C = \
147147
gccollect.c \
148148
pybstdio.c \
149149
help.c \
150-
input.c \
151150
machine_i2c.c \
152151
modmachine.c \
153152
modpyb.c \

stmhal/input.c

Lines changed: 0 additions & 44 deletions
This file was deleted.

stmhal/mpconfigport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
#define MICROPY_PY_ALL_SPECIAL_METHODS (1)
8888
#define MICROPY_PY_BUILTINS_COMPILE (1)
8989
#define MICROPY_PY_BUILTINS_EXECFILE (1)
90+
#define MICROPY_PY_BUILTINS_INPUT (1)
9091
#define MICROPY_PY_BUILTINS_POW3 (1)
9192
#define MICROPY_PY_BUILTINS_HELP (1)
9293
#define MICROPY_PY_BUILTINS_HELP_TEXT stmhal_help_text
@@ -159,7 +160,6 @@
159160

160161
// extra built in names to add to the global namespace
161162
#define MICROPY_PORT_BUILTINS \
162-
{ MP_OBJ_NEW_QSTR(MP_QSTR_input), (mp_obj_t)&mp_builtin_input_obj }, \
163163
{ MP_OBJ_NEW_QSTR(MP_QSTR_open), (mp_obj_t)&mp_builtin_open_obj },
164164

165165
// extra built in modules to add to the list of known ones

teensy/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ SRC_C = \
9393

9494
STM_SRC_C = $(addprefix stmhal/,\
9595
gccollect.c \
96-
input.c \
9796
irq.c \
9897
pin.c \
9998
pin_named_pins.c \

teensy/mpconfigport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
1515
#define MICROPY_OPT_COMPUTED_GOTO (1)
1616

17+
#define MICROPY_PY_BUILTINS_INPUT (1)
1718
#define MICROPY_PY_BUILTINS_HELP (1)
1819
#define MICROPY_PY_BUILTINS_HELP_TEXT teensy_help_text
1920

@@ -31,7 +32,6 @@
3132

3233
// extra built in names to add to the global namespace
3334
#define MICROPY_PORT_BUILTINS \
34-
{ MP_OBJ_NEW_QSTR(MP_QSTR_input), (mp_obj_t)&mp_builtin_input_obj }, \
3535

3636
// extra built in modules to add to the list of known ones
3737
extern const struct _mp_obj_module_t os_module;

0 commit comments

Comments
 (0)