From de823e7741bcb817df7c231620103cc30beab0ba Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Thu, 21 Apr 2022 16:04:19 +0200 Subject: [PATCH] rp2/boards/ARDUINO_NANO_RP2040_CONNECT: Enable Arduino 1200bps touch. --- ports/rp2/CMakeLists.txt | 1 + ports/rp2/boards/ARDUINO_NANO_RP2040_CONNECT/mpconfigboard.h | 1 + 2 files changed, 2 insertions(+) diff --git a/ports/rp2/CMakeLists.txt b/ports/rp2/CMakeLists.txt index d6a428c91c..0088ba2c6d 100644 --- a/ports/rp2/CMakeLists.txt +++ b/ports/rp2/CMakeLists.txt @@ -83,6 +83,7 @@ set(MICROPY_SOURCE_LIB ${MICROPY_DIR}/shared/runtime/pyexec.c ${MICROPY_DIR}/shared/runtime/stdout_helpers.c ${MICROPY_DIR}/shared/runtime/sys_stdio_mphal.c + ${MICROPY_DIR}/shared/runtime/tinyusb_helpers.c ${MICROPY_DIR}/shared/timeutils/timeutils.c ) diff --git a/ports/rp2/boards/ARDUINO_NANO_RP2040_CONNECT/mpconfigboard.h b/ports/rp2/boards/ARDUINO_NANO_RP2040_CONNECT/mpconfigboard.h index 6d04e3e1d0..3f18596155 100644 --- a/ports/rp2/boards/ARDUINO_NANO_RP2040_CONNECT/mpconfigboard.h +++ b/ports/rp2/boards/ARDUINO_NANO_RP2040_CONNECT/mpconfigboard.h @@ -19,6 +19,7 @@ #define MICROPY_HW_USB_MSC (1) #define MICROPY_HW_USB_VID (0x2341) #define MICROPY_HW_USB_PID (0x025e) +#define MICROPY_HW_USB_CDC_1200BPS_TOUCH (1) // UART 1 config. #define MICROPY_HW_UART1_TX (8)