2021-02-17 13:47:50 +01:00
|
|
|
# Copyright (c) 2020 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 CPU_FAM_GD32V
|
|
|
|
bool
|
2021-09-22 15:50:28 +02:00
|
|
|
select CPU_CORE_RV32IMAC
|
2023-01-21 16:06:53 +01:00
|
|
|
select HAS_ARCH_NUCLEI
|
2021-02-17 13:47:50 +01:00
|
|
|
select HAS_CPU_GD32V
|
|
|
|
select HAS_PERIPH_CLIC
|
|
|
|
select HAS_PERIPH_GPIO
|
2023-01-23 22:51:26 +01:00
|
|
|
select HAS_PERIPH_GPIO_IRQ
|
2023-02-04 11:29:09 +01:00
|
|
|
select HAS_PERIPH_GPIO_LL
|
2023-02-07 12:19:42 +01:00
|
|
|
select HAS_PERIPH_GPIO_LL_IRQ
|
|
|
|
select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_HIGH
|
|
|
|
select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_LOW
|
2021-02-17 13:47:50 +01:00
|
|
|
select HAS_PERIPH_FLASHPAGE
|
2022-03-17 19:45:54 +01:00
|
|
|
select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE
|
2021-02-17 13:47:50 +01:00
|
|
|
select HAS_PERIPH_FLASHPAGE_PAGEWISE
|
|
|
|
select HAS_PERIPH_PM
|
2023-01-22 17:53:44 +01:00
|
|
|
select HAS_PERIPH_RTC
|
2023-02-06 22:22:01 +01:00
|
|
|
select HAS_PERIPH_RTC_MEM
|
2023-01-24 00:31:52 +01:00
|
|
|
select HAS_PERIPH_RTT
|
2021-08-25 10:48:48 +02:00
|
|
|
select HAS_PERIPH_TIMER
|
|
|
|
select HAS_PERIPH_TIMER_PERIODIC
|
2021-02-17 13:47:50 +01:00
|
|
|
select HAS_PERIPH_WDT
|
|
|
|
|
2021-09-28 16:41:59 +02:00
|
|
|
select MODULE_PERIPH_CLIC if TEST_KCONFIG
|
|
|
|
select MODULE_PERIPH_WDT if MODULE_PERIPH_PM && HAS_PERIPH_WDT
|
2023-03-07 23:40:02 +01:00
|
|
|
select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV
|
2023-02-17 18:52:33 +01:00
|
|
|
select ZTIMER_USEC if MODULE_PERIPH_I2C
|
2023-01-23 23:19:38 +01:00
|
|
|
select PACKAGE_NMSIS_SDK
|
|
|
|
|
|
|
|
menu "GD32V configuration"
|
2021-09-28 16:41:59 +02:00
|
|
|
|
2023-01-18 13:10:00 +01:00
|
|
|
config CPU_MODEL_GD32VF103CBT6
|
|
|
|
bool
|
|
|
|
select CPU_FAM_GD32V
|
|
|
|
|
2021-02-17 13:47:50 +01:00
|
|
|
config CPU_MODEL_GD32VF103VBT6
|
|
|
|
bool
|
|
|
|
select CPU_FAM_GD32V
|
|
|
|
|
|
|
|
## Definition of specific features
|
|
|
|
config HAS_CPU_GD32V
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Indicates that a 'gd32v' cpu is being used.
|
|
|
|
|
|
|
|
config CPU_FAM
|
|
|
|
default "gd32v" if CPU_FAM_GD32V
|
|
|
|
|
2023-01-18 13:10:00 +01:00
|
|
|
config CPU_MODEL
|
|
|
|
default "gd32vf103cbt6" if CPU_MODEL_GD32VF103CBT6
|
|
|
|
|
2021-02-17 13:47:50 +01:00
|
|
|
config CPU_MODEL
|
|
|
|
default "gd32vf103vbt6" if CPU_MODEL_GD32VF103VBT6
|
|
|
|
|
|
|
|
config CPU
|
|
|
|
default "gd32v" if CPU_FAM_GD32V
|
|
|
|
|
2021-09-22 15:50:28 +02:00
|
|
|
config CPU_CORE
|
|
|
|
default "rv32imac" if CPU_CORE_RV32IMAC
|
|
|
|
|
2021-09-28 16:41:59 +02:00
|
|
|
rsource "periph/Kconfig"
|
|
|
|
|
2023-01-23 23:19:38 +01:00
|
|
|
endmenu
|
|
|
|
|
2021-02-17 13:47:50 +01:00
|
|
|
source "$(RIOTCPU)/riscv_common/Kconfig"
|