2020-06-23 21:39:14 +02: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_FE310
|
|
|
|
bool
|
2021-09-22 15:51:54 +02:00
|
|
|
select CPU_CORE_RV32IMAC
|
2020-06-23 21:39:14 +02:00
|
|
|
select HAS_CPU_FE310
|
|
|
|
select HAS_PERIPH_CPUID
|
|
|
|
select HAS_PERIPH_GPIO
|
|
|
|
select HAS_PERIPH_GPIO_IRQ
|
|
|
|
select HAS_PERIPH_PM
|
2021-08-25 10:49:47 +02:00
|
|
|
select HAS_PERIPH_PLIC
|
2021-01-13 20:48:29 +01:00
|
|
|
select HAS_PERIPH_RTT_OVERFLOW
|
2021-03-04 20:04:11 +01:00
|
|
|
select HAS_PERIPH_RTT_SET_COUNTER
|
2020-06-23 21:39:14 +02:00
|
|
|
select HAS_PERIPH_WDT
|
|
|
|
|
2021-09-28 16:18:15 +02:00
|
|
|
select MODULE_PERIPH_PLIC if TEST_KCONFIG
|
|
|
|
select MODULE_PERIPH_CORETIMER if MODULE_PERIPH_TIMER && HAS_PERIPH_CORETIMER
|
|
|
|
select MODULE_PERIPH_RTT if MODULE_PERIPH_RTC && HAS_PERIPH_RTT
|
2021-12-14 18:43:53 +01:00
|
|
|
select MODULE_ZTIMER_NO_PERIPH_RTT if TEST_KCONFIG && MODULE_ZTIMER
|
2021-09-28 16:18:15 +02:00
|
|
|
|
2020-06-23 21:39:14 +02:00
|
|
|
config CPU_MODEL_FE310_G000
|
|
|
|
bool
|
|
|
|
select CPU_FAM_FE310
|
|
|
|
|
|
|
|
config CPU_MODEL_FE310_G002
|
|
|
|
bool
|
|
|
|
select CPU_FAM_FE310
|
|
|
|
|
|
|
|
## Definition of specific features
|
|
|
|
config HAS_CPU_FE310
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Indicates that a 'fe310' cpu is being used.
|
|
|
|
|
|
|
|
config CPU_FAM
|
|
|
|
default "fe310" if CPU_FAM_FE310
|
|
|
|
|
|
|
|
config CPU_MODEL
|
|
|
|
default "fe310_g000" if CPU_MODEL_FE310_G000
|
|
|
|
default "fe310_g002" if CPU_MODEL_FE310_G002
|
|
|
|
|
|
|
|
config CPU
|
|
|
|
default "fe310" if CPU_FAM_FE310
|
2020-12-15 23:12:06 +01:00
|
|
|
|
2021-09-22 15:51:54 +02:00
|
|
|
config CPU_CORE
|
|
|
|
default "rv32imac" if CPU_CORE_RV32IMAC
|
|
|
|
|
2020-12-15 23:12:06 +01:00
|
|
|
rsource "Kconfig.clk"
|
2021-09-28 16:18:15 +02:00
|
|
|
rsource "periph/Kconfig"
|
|
|
|
rsource "vendor/Kconfig"
|
2020-09-09 21:37:15 +02:00
|
|
|
|
|
|
|
source "$(RIOTCPU)/riscv_common/Kconfig"
|