-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
19824: boards/sipeed_longan_nano: separate board definition for Sipeed Longan Nano TFT r=benpicco a=gschorcht ### Contribution description This PR provides a minimal separate board definition for the Sipeed Longan Nano version with TFT display which is just an extension of `boards/sipeed-longan-nano` with enabled TFT display module. From the lessons we had to learn with the Kconfig modelling of optional hardware, the TFT version of the Sipeed Longan Nano board has been split off into its own board definition based on the existing Siepeed Longan Nano board. Commits ba29a5e, 237819e, 6d8b56d and c5faf34 are small cleanups of peripheral configurations and could be split from this PR as follow-up PR (changes +70 -36). ### Testing procedure Green CI ``` BOARD=sipeed-longan-nano-tft make -j8 -C tests/drivers/st77xx flash ``` should work ### Issues/PRs references Follow up to PR #19813 and PR #19814 Prerequisite for PR #19825 and PR #19827 19855: gnrc_static: fix static PID assignment r=benpicco a=benpicco Co-authored-by: Gunar Schorcht <gunar@schorcht.net> Co-authored-by: Benjamin Valentin <benjamin.valentin@bht-berlin.de>
- Loading branch information
Showing
32 changed files
with
181 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
DIRS = $(RIOTBOARD)/sipeed-longan-nano | ||
include $(RIOTBASE)/Makefile.base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ifneq (,$(filter disp_dev,$(USEMODULE))) | ||
USEMODULE += st7735 | ||
endif | ||
|
||
include $(RIOTBOARD)/sipeed-longan-nano/Makefile.dep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include $(RIOTBOARD)/sipeed-longan-nano/Makefile.features |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
INCLUDES += -I$(RIOTBOARD)/sipeed-longan-nano/include | ||
include $(RIOTBOARD)/sipeed-longan-nano/Makefile.include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <gunar@schorcht.net> | ||
|
||
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. | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
PORT_LINUX ?= /dev/ttyACM0 | ||
PROGRAMMER ?= dfu-util | ||
|
||
ifneq (,$(filter st7735,$(USEMODULE))) | ||
CFLAGS += '-DCONFIG_SIPEED_LONGAN_NANO_WITH_TFT=1' | ||
endif | ||
|
||
include $(RIOTBOARD)/common/gd32v/Makefile.include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.