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

cpu/lpc1768: Add Kconfig symbols

Also specify CPU_FAM in Makefile.features
This commit is contained in:
Leandro Lanzieri 2020-07-08 19:43:26 +02:00
parent 15110af51c
commit 8e5c0f3f84
No known key found for this signature in database
GPG Key ID: 13559905E2EBEAA5
2 changed files with 39 additions and 1 deletions

37
cpu/lpc1768/Kconfig Normal file
View File

@ -0,0 +1,37 @@
# 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_LPC176X
bool
select CPU_CORE_CORTEX_M3
select HAS_CORTEXM_MPU
select HAS_PERIPH_CPUID
select HAS_PERIPH_PM
## CPU Models
config CPU_MODEL_LPC1768
bool
select CPU_FAM_LPC176X
select HAS_CPU_LPC1768
## Declaration of specific features
config HAS_CPU_LPC1768
bool
help
Indicates that an 'lpc1768' cpu is being used.
## Common CPU symbols
config CPU_FAM
default "lpc176x" if CPU_FAM_LPC176X
config CPU_MODEL
default "lpc1768" if CPU_MODEL_LPC1768
config CPU
default "lpc1768" if CPU_MODEL_LPC1768
source "$(RIOTCPU)/cortexm_common/Kconfig"

View File

@ -1,4 +1,5 @@
CPU_CORE = cortex-m3
CPU_FAM = lpc176x
# This CPU only implements one CPU_MODEL with the same name
CPU_MODEL = lpc1768
@ -6,4 +7,4 @@ FEATURES_PROVIDED += cortexm_mpu
FEATURES_PROVIDED += periph_cpuid
FEATURES_PROVIDED += periph_pm
-include $(RIOTCPU)/cortexm_common/Makefile.features
include $(RIOTCPU)/cortexm_common/Makefile.features