8000 nrf: Enable optional support for Arduino 1200bps touch. · micropython/micropython@425d8fc · GitHub
[go: up one dir, main page]

Skip to content

Commit 425d8fc

Browse files
iabdalkaderdpgeorge
authored andcommitted
nrf: Enable optional support for Arduino 1200bps touch.
Individual boards must enable it via MICROPY_HW_USB_CDC_1200BPS_TOUCH.
1 parent de823e7 commit 425d8fc

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

ports/nrf/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ SRC_LIB += $(addprefix shared/,\
232232
runtime/pyexec.c \
233233
runtime/sys_stdio_mphal.c \
234234
runtime/interrupt_char.c \
235+
runtime/tinyusb_helpers.c \
235236
timeutils/timeutils.c \
236237
)
237238

ports/nrf/mpconfigport.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@
157157
#define MICROPY_MODULE_WEAK_LINKS (1)
158158
#define MICROPY_CAN_OVERRIDE_BUILTINS (1)
159159
#define MICROPY_USE_INTERNAL_ERRNO (1)
160+
#if MICROPY_HW_USB_CDC_1200BPS_TOUCH
161+
#define MICROPY_ENABLE_SCHEDULER (1)
162+
#define MICROPY_SCHEDULER_STATIC_NODES (1)
163+
#endif
160164
#define MICROPY_PY_FUNCTION_ATTRS (1)
161165
#define MICROPY_PY_BUILTINS_STR_UNICODE (1)
162166
#define MICROPY_PY_BUILTINS_MEMORYVIEW (1)

0 commit comments

Comments
 (0)
0