From a73c03ed0cbfac490e068fd4d1ce62d8dfc7f0eb Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 24 Jun 2020 09:27:02 +0200 Subject: [PATCH] cpu/cc430: Add Kconfig symbols Also specify CPU_FAM in Makefile.features --- cpu/cc430/Kconfig | 34 ++++++++++++++++++++++++++++++++++ cpu/cc430/Makefile.features | 4 +++- 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/cpu/cc430/Kconfig b/cpu/cc430/Kconfig index 35a0e06706..03b202a70c 100644 --- a/cpu/cc430/Kconfig +++ b/cpu/cc430/Kconfig @@ -1 +1,35 @@ +# Copyright (c) 2020 Freie Universität Berlin +# 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_CC430 + bool + select CPU_CORE_MSP430 + select HAS_CPU_CC430 + +## CPU Models +config CPU_MODEL_CC430F6137 + bool + select CPU_FAM_CC430 + +## Definition of specific features +config HAS_CPU_CC430 + bool + help + Indicates that a 'cc430' cpu is being used. + +## Common CPU symbols +config CPU_FAM + default "cc430" if CPU_FAM_CC430 + +config CPU_MODEL + default "cc430f6137" if CPU_MODEL_CC430F6137 + +config CPU + default "cc430" if CPU_FAM_CC430 + source "$(RIOTCPU)/msp430_common/Kconfig" diff --git a/cpu/cc430/Makefile.features b/cpu/cc430/Makefile.features index fb1e9f3df3..07ce63ec76 100644 --- a/cpu/cc430/Makefile.features +++ b/cpu/cc430/Makefile.features @@ -1 +1,3 @@ --include $(RIOTCPU)/msp430_common/Makefile.features +CPU_FAM = cc430 + +include $(RIOTCPU)/msp430_common/Makefile.features