From e9a2dcd1e0c387aada60858ca781bc79d44ae9c4 Mon Sep 17 00:00:00 2001 From: Jean Pierre Dudey Date: Thu, 4 Jun 2020 22:18:20 -0500 Subject: [PATCH] cpu/cc26x2_cc13x2: model features in Kconfig Signed-off-by: Jean Pierre Dudey --- cpu/cc26x2_cc13x2/Kconfig | 50 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 cpu/cc26x2_cc13x2/Kconfig diff --git a/cpu/cc26x2_cc13x2/Kconfig b/cpu/cc26x2_cc13x2/Kconfig new file mode 100644 index 0000000000..e86891a1cc --- /dev/null +++ b/cpu/cc26x2_cc13x2/Kconfig @@ -0,0 +1,50 @@ +# Copyright (c) 2020 Locha Inc +# +# 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_FAMILY_CC26X2_CC13X2 + bool + select CPU_CORE_CORTEX_M4F + select CPU_COMMON_CC26XX_CC13XX + select HAS_CPU_CC26X2_CC13X2 + select HAS_CORTEXM_MPU + +config CPU_SERIES_CC13X2 + bool + select CPU_FAMILY_CC26X2_CC13X2 + +## CPU Models +config CPU_MODEL_CC1312R1F3 + bool + select CPU_SERIES_CC13X2 + +config CPU_MODEL_CC1352R1 + bool + select CPU_SERIES_CC13X2 + +config CPU_MODEL_CC1352P1 + bool + select CPU_SERIES_CC13X2 + +## Definition of specific features +config HAS_CPU_CC26X2_CC13X2 + bool + help + Indicates that a 'cc26x2_cc13x2' cpu is being used. + +## Common CPU symbols +config CPU_FAMILY + default "cc26x2_cc13x2" if CPU_FAMILY_CC26X2_CC13X2 + +config CPU_SERIES + default "cc13x2" if CPU_SERIES_CC13X2 + +config CPU_MODEL + default "cc1312r1f3" if CPU_MODEL_CC1312R1F3 + default "cc1352r1" if CPU_MODEL_CC1352R1 + default "cc1352p1" if CPU_MODEL_CC1352P1 + +source "$(RIOTCPU)/cc26xx_cc13xx/Kconfig"