diff --git a/boards/sipeed-longan-nano-tft/Kconfig b/boards/sipeed-longan-nano-tft/Kconfig new file mode 100644 index 0000000000..6595dbb6d5 --- /dev/null +++ b/boards/sipeed-longan-nano-tft/Kconfig @@ -0,0 +1,39 @@ +# Copyright (c) 2023 Gunar Schorcht +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. +# + +config BOARD + default "sipeed-longan-nano-tft" if BOARD_SIPEED_LONGAN_NANO_TFT + +config BOARD_SIPEED_LONGAN_NANO_TFT + bool + default y + select CPU_MODEL_GD32VF103CBT6 + select BOARD_HAS_HXTAL + select BOARD_HAS_LXTAL + select HAS_HIGHLEVEL_STDIO + select HAS_PERIPH_ADC + select HAS_PERIPH_DAC + select HAS_PERIPH_I2C + select HAS_PERIPH_PWM + select HAS_PERIPH_SPI + select HAS_PERIPH_TIMER + select HAS_PERIPH_UART + select HAS_PERIPH_USBDEV + select HAS_RIOTBOOT + select HAS_TINYUSB_DEVICE + + select HAVE_MTD_SDCARD_DEFAULT + select HAVE_SAUL_GPIO + select HAVE_ST7735 + + select MODULE_FATFS_VFS if MODULE_VFS_DEFAULT + select MODULE_USB_BOARD_RESET if KCONFIG_USB && TEST_KCONFIG + +config FORCE_USB_STDIO + default y + +source "$(RIOTBOARD)/common/gd32v/Kconfig" diff --git a/boards/sipeed-longan-nano-tft/Makefile b/boards/sipeed-longan-nano-tft/Makefile new file mode 100644 index 0000000000..01e5df8f9e --- /dev/null +++ b/boards/sipeed-longan-nano-tft/Makefile @@ -0,0 +1,2 @@ +DIRS = $(RIOTBOARD)/sipeed-longan-nano +include $(RIOTBASE)/Makefile.base diff --git a/boards/sipeed-longan-nano-tft/Makefile.dep b/boards/sipeed-longan-nano-tft/Makefile.dep new file mode 100644 index 0000000000..dec4c96198 --- /dev/null +++ b/boards/sipeed-longan-nano-tft/Makefile.dep @@ -0,0 +1,5 @@ +ifneq (,$(filter disp_dev,$(USEMODULE))) + USEMODULE += st7735 +endif + +include $(RIOTBOARD)/sipeed-longan-nano/Makefile.dep diff --git a/boards/sipeed-longan-nano-tft/Makefile.features b/boards/sipeed-longan-nano-tft/Makefile.features new file mode 100644 index 0000000000..433a0a399d --- /dev/null +++ b/boards/sipeed-longan-nano-tft/Makefile.features @@ -0,0 +1 @@ +include $(RIOTBOARD)/sipeed-longan-nano/Makefile.features diff --git a/boards/sipeed-longan-nano-tft/Makefile.include b/boards/sipeed-longan-nano-tft/Makefile.include new file mode 100644 index 0000000000..7013e027f1 --- /dev/null +++ b/boards/sipeed-longan-nano-tft/Makefile.include @@ -0,0 +1,2 @@ +INCLUDES += -I$(RIOTBOARD)/sipeed-longan-nano/include +include $(RIOTBOARD)/sipeed-longan-nano/Makefile.include diff --git a/boards/sipeed-longan-nano-tft/doc.txt b/boards/sipeed-longan-nano-tft/doc.txt new file mode 100644 index 0000000000..623109080f --- /dev/null +++ b/boards/sipeed-longan-nano-tft/doc.txt @@ -0,0 +1,21 @@ +/** +@defgroup boards_sipeed_longan_nano_tft Sipeed Longan Nano with TFT +@ingroup boards +@brief Support for the Sipeed Longan Nano board with TFT display +@author Gunar Schorcht + +The [Sipeed Longan Nano TFT](https://longan.sipeed.com/en) board is a version +of the \ref sipeed_longan_nano "Sipeed Longan Nano" development board +that is equipped with a TFT display with the following on-board components: + +- GD32VF103CBT6 RISC-V MCU @108MHz +- USB Type C +- TF card slot +- 3 user LEDs +- 0.96" TFT display 160 x 80 pixel + +@image html "https://media-cdn.seeedstudio.com/media/catalog/product/cache/7f7f32ef807b8c2c2215b49801c56084/1/1/114992425_1.jpg" "Sipeed Longan Nano" width=600 + +Detailed information about the board configuration and flashing can be found +in the \ref sipeed_longan_nano "Sipeed Longan Nano" documentation. +*/