1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/lm4f120: Add Kconfig symbols

Also specify CPU_FAM in Makefile.features
This commit is contained in:
Leandro Lanzieri 2020-07-08 19:21:16 +02:00
parent f9798d98d3
commit 52b31b5fce
No known key found for this signature in database
GPG Key ID: 13559905E2EBEAA5
2 changed files with 37 additions and 1 deletions

35
cpu/lm4f120/Kconfig Normal file
View File

@ -0,0 +1,35 @@
# Copyright (c) 2020 HAW Hamburg
#
# 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_LM4F120
bool
select CPU_CORE_CORTEX_M4F
select HAS_CORTEXM_MPU
select HAS_CPU_LM4F120
config CPU_MODEL_LM4F120H5QR
bool
select CPU_FAM_LM4F120
## Declaration of specific features
config HAS_CPU_LM4F120
bool
help
Indicates that a 'lm4f120' cpu is being used.
## Common CPU symbols
config CPU_FAM
default "lm4f120" if CPU_FAM_LM4F120
config CPU
default "lm4f120" if CPU_FAM_LM4F120
config CPU_MODEL
# uppercase to match the Makefile.features
default "LM4F120H5QR" if CPU_MODEL_LM4F120H5QR
source "$(RIOTCPU)/cortexm_common/Kconfig"

View File

@ -1,5 +1,6 @@
CPU_CORE = cortex-m4f
CPU_FAM = lm4f120
FEATURES_PROVIDED += cortexm_mpu
-include $(RIOTCPU)/cortexm_common/Makefile.features
include $(RIOTCPU)/cortexm_common/Makefile.features