From 8e5c0f3f840ecfc21f3654d4e5c4dc2281074541 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 8 Jul 2020 19:43:26 +0200 Subject: [PATCH 1/4] cpu/lpc1768: Add Kconfig symbols Also specify CPU_FAM in Makefile.features --- cpu/lpc1768/Kconfig | 37 +++++++++++++++++++++++++++++++++++ cpu/lpc1768/Makefile.features | 3 ++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 cpu/lpc1768/Kconfig diff --git a/cpu/lpc1768/Kconfig b/cpu/lpc1768/Kconfig new file mode 100644 index 0000000000..9bceab47ee --- /dev/null +++ b/cpu/lpc1768/Kconfig @@ -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" diff --git a/cpu/lpc1768/Makefile.features b/cpu/lpc1768/Makefile.features index 398a22da3a..6f3c2419e5 100644 --- a/cpu/lpc1768/Makefile.features +++ b/cpu/lpc1768/Makefile.features @@ -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 From 2ca62f4a76f3545c200629b53a22bba5b9954881 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 8 Jul 2020 19:44:05 +0200 Subject: [PATCH 2/4] boards/mbed_lpc1768: Add Kconfig symbols --- boards/mbed_lpc1768/Kconfig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 boards/mbed_lpc1768/Kconfig diff --git a/boards/mbed_lpc1768/Kconfig b/boards/mbed_lpc1768/Kconfig new file mode 100644 index 0000000000..d6a1cfb223 --- /dev/null +++ b/boards/mbed_lpc1768/Kconfig @@ -0,0 +1,17 @@ +# 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 BOARD + default "mbed_lpc1768" if BOARD_MBED_LPC1768 + +config BOARD_MBED_LPC1768 + bool + default y + select CPU_MODEL_LPC1768 + select HAS_PERIPH_GPIO + select HAS_PERIPH_GPIO_IRQ + select HAS_PERIPH_TIMER + select HAS_PERIPH_UART From 173b15b69065f849d47e08480d171469abcb22b6 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 8 Jul 2020 19:44:21 +0200 Subject: [PATCH 3/4] boards/seeeduino_arch-pro: Add Kconfig symbols --- boards/seeeduino_arch-pro/Kconfig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 boards/seeeduino_arch-pro/Kconfig diff --git a/boards/seeeduino_arch-pro/Kconfig b/boards/seeeduino_arch-pro/Kconfig new file mode 100644 index 0000000000..88ab4d0d3d --- /dev/null +++ b/boards/seeeduino_arch-pro/Kconfig @@ -0,0 +1,17 @@ +# 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 BOARD + default "seeeduino_arch-pro" if BOARD_SEEEDUINO_ARCH_PRO + +config BOARD_SEEEDUINO_ARCH_PRO + bool + default y + select CPU_MODEL_LPC1768 + select HAS_PERIPH_GPIO + select HAS_PERIPH_GPIO_IRQ + select HAS_PERIPH_TIMER + select HAS_PERIPH_UART From 7fdd3d1f795bb0d9c6aaefc5eef9d618d026528b Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 8 Jul 2020 19:44:35 +0200 Subject: [PATCH 4/4] tests/kconfig_features: Add lpc1768-based boards to whitelist --- tests/kconfig_features/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/kconfig_features/Makefile b/tests/kconfig_features/Makefile index 3bebd42183..a45051ab9f 100644 --- a/tests/kconfig_features/Makefile +++ b/tests/kconfig_features/Makefile @@ -59,6 +59,7 @@ BOARD_WHITELIST += 6lowpan-clicker \ lobaro-lorabox \ lsn50 \ maple-mini \ + mbed_lpc1768 \ mega-xplained \ microbit \ microduino-corerf \ @@ -133,6 +134,7 @@ BOARD_WHITELIST += 6lowpan-clicker \ remote-revb \ ruuvitag \ samr21-xpro \ + seeeduino_arch-pro \ slstk3401a \ slstk3402a \ sltb001a \