diff --git a/boards/sipeed-longan-nano/Kconfig b/boards/sipeed-longan-nano/Kconfig index 3397ae60d7..38d4316fc1 100644 --- a/boards/sipeed-longan-nano/Kconfig +++ b/boards/sipeed-longan-nano/Kconfig @@ -26,10 +26,15 @@ config BOARD_SIPEED_LONGAN_NANO select HAVE_MTD_SDCARD_DEFAULT select MODULE_FATFS_VFS if MODULE_VFS_DEFAULT + select PACKAGE_TINYUSB if TEST_KCONFIG config SIPEED_LONGAN_NANO_WITH_TFT bool "Board with TFT display" help Indicates that a Sipeed Longan Nano board with TFT display is used. +choice STDIO_IMPLEMENTATION + default MODULE_STDIO_TINYUSB_CDC_ACM if PACKAGE_TINYUSB +endchoice + source "$(RIOTBOARD)/common/gd32v/Kconfig" diff --git a/boards/sipeed-longan-nano/Makefile.dep b/boards/sipeed-longan-nano/Makefile.dep index ce46e025a0..04e964449b 100644 --- a/boards/sipeed-longan-nano/Makefile.dep +++ b/boards/sipeed-longan-nano/Makefile.dep @@ -12,4 +12,5 @@ ifneq (,$(filter vfs_default,$(USEMODULE))) USEMODULE += mtd endif +include $(RIOTBOARD)/common/makefiles/stdio_tinyusb_cdc_acm.dep.mk include $(RIOTBOARD)/common/gd32v/Makefile.dep diff --git a/boards/sipeed-longan-nano/Makefile.include b/boards/sipeed-longan-nano/Makefile.include index 899eb27839..1ac941091b 100644 --- a/boards/sipeed-longan-nano/Makefile.include +++ b/boards/sipeed-longan-nano/Makefile.include @@ -1,2 +1,3 @@ +PORT_LINUX ?= /dev/ttyACM0 PROGRAMMER ?= dfu-util include $(RIOTBOARD)/common/gd32v/Makefile.include