summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriabdalkader <i.abdalkader@gmail.com>2022-04-21 16:35:59 +0200
committerDamien George <damien@micropython.org>2022-06-23 14:33:40 +1000
commit425d8fc0d652a58f1a6e81d953281beb5784e18b (patch)
treee4c81999e115e50ccca8ebcd53be190feed78b92
parentde823e7741bcb817df7c231620103cc30beab0ba (diff)
nrf: Enable optional support for Arduino 1200bps touch.
Individual boards must enable it via MICROPY_HW_USB_CDC_1200BPS_TOUCH.
-rw-r--r--ports/nrf/Makefile1
-rw-r--r--ports/nrf/mpconfigport.h4
2 files changed, 5 insertions, 0 deletions
diff --git a/ports/nrf/Makefile b/ports/nrf/Makefile
index 25b8c03d1..d02289264 100644
--- a/ports/nrf/Makefile
+++ b/ports/nrf/Makefile
@@ -232,6 +232,7 @@ SRC_LIB += $(addprefix shared/,\
runtime/pyexec.c \
runtime/sys_stdio_mphal.c \
runtime/interrupt_char.c \
+ runtime/tinyusb_helpers.c \
timeutils/timeutils.c \
)
diff --git a/ports/nrf/mpconfigport.h b/ports/nrf/mpconfigport.h
index 102be3eaa..243c30809 100644
--- a/ports/nrf/mpconfigport.h
+++ b/ports/nrf/mpconfigport.h
@@ -157,6 +157,10 @@
#define MICROPY_MODULE_WEAK_LINKS (1)
#define MICROPY_CAN_OVERRIDE_BUILTINS (1)
#define MICROPY_USE_INTERNAL_ERRNO (1)
+#if MICROPY_HW_USB_CDC_1200BPS_TOUCH
+#define MICROPY_ENABLE_SCHEDULER (1)
+#define MICROPY_SCHEDULER_STATIC_NODES (1)
+#endif
#define MICROPY_PY_FUNCTION_ATTRS (1)
#define MICROPY_PY_BUILTINS_STR_UNICODE (1)
#define MICROPY_PY_BUILTINS_MEMORYVIEW (1)