1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-16 12:52:43 +01:00
RIOT/cpu/fe310/Kconfig
Marian Buschsieweke ab89234040
drivers/periph/rtt: add periph_rtt_set_counter feature
Some periph_rtt implementations do not provide `rtt_set_counter()`. This
adds `periph_rtt_set_counter` as feature to allow testing for its
availability. The feature is provided at CPU level if periph_rtt is
provided by the board for all CPUs implementing `rtt_set_counter()`.
2021-03-08 14:16:46 +01:00

46 lines
994 B
Plaintext

# 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
select CPU_CORE_RV32I
select HAS_CPU_FE310
select HAS_PERIPH_CPUID
select HAS_PERIPH_GPIO
select HAS_PERIPH_GPIO_IRQ
select HAS_PERIPH_PM
select HAS_PERIPH_RTT_SET_COUNTER
select HAS_PERIPH_WDT
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
rsource "Kconfig.clk"
source "$(RIOTCPU)/riscv_common/Kconfig"