2023-01-18 13:10:00 +01:00
|
|
|
# Copyright (c) 2023 Inria
|
|
|
|
#
|
|
|
|
# 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" if BOARD_SIPEED_LONGAN_NANO
|
|
|
|
|
|
|
|
config BOARD_SIPEED_LONGAN_NANO
|
|
|
|
bool
|
|
|
|
default y
|
|
|
|
select CPU_MODEL_GD32VF103CBT6
|
|
|
|
select BOARD_HAS_HXTAL
|
|
|
|
select BOARD_HAS_LXTAL
|
2023-01-19 16:52:21 +01:00
|
|
|
select HAS_PERIPH_ADC
|
2023-01-29 18:38:11 +01:00
|
|
|
select HAS_PERIPH_I2C
|
2023-01-28 18:01:16 +01:00
|
|
|
select HAS_PERIPH_PWM
|
2023-01-30 08:07:22 +01:00
|
|
|
select HAS_PERIPH_SPI
|
2023-01-18 13:10:00 +01:00
|
|
|
select HAS_PERIPH_TIMER
|
|
|
|
select HAS_PERIPH_UART
|
|
|
|
select HAVE_SAUL_GPIO
|
|
|
|
|
2023-02-02 02:09:15 +01:00
|
|
|
select HAVE_MTD_SDCARD_DEFAULT
|
|
|
|
select MODULE_FATFS_VFS if MODULE_VFS_DEFAULT
|
|
|
|
|
2023-01-19 16:52:21 +01:00
|
|
|
config SIPEED_LONGAN_NANO_WITH_TFT
|
|
|
|
bool "Board with TFT display"
|
|
|
|
help
|
|
|
|
Indicates that a Sipeed Longan Nano board with TFT display is used.
|
|
|
|
|
2023-01-18 13:10:00 +01:00
|
|
|
source "$(RIOTBOARD)/common/gd32v/Kconfig"
|