From a5dedf3c91e1af6d4bb9dd88d67facfc63d6db48 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 4 Jun 2020 18:31:28 +0200 Subject: [PATCH 1/6] cpu/atmega1284p: Add Kconfig symbols --- cpu/atmega1284p/Kconfig | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 cpu/atmega1284p/Kconfig diff --git a/cpu/atmega1284p/Kconfig b/cpu/atmega1284p/Kconfig new file mode 100644 index 0000000000..657397c11f --- /dev/null +++ b/cpu/atmega1284p/Kconfig @@ -0,0 +1,29 @@ +# 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. + +## CPU Models +config CPU_MODEL_ATMEGA1284P + bool + select CPU_FAM_ATMEGA128 + select HAS_ATMEGA_PCINT1 + select HAS_ATMEGA_PCINT2 + select HAS_ATMEGA_PCINT3 + select HAS_CPU_ATMEGA1284P + +## Definition of specific features +config HAS_CPU_ATMEGA1284P + bool + help + Indicates that a 'atmega1284p' cpu is being used. + +## Common CPU symbols +config CPU_MODEL + default "atmega1284p" if CPU_MODEL_ATMEGA1284P + +config CPU + default "atmega1284p" if CPU_MODEL_ATMEGA1284P + +source "$(RIOTCPU)/atmega_common/Kconfig" From 3f8ff785a294e39318a59dd766a75c9e82732d35 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 4 Jun 2020 18:32:01 +0200 Subject: [PATCH 2/6] boards/atmega1284p: Add Kconfig symbols --- boards/atmega1284p/Kconfig | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 boards/atmega1284p/Kconfig diff --git a/boards/atmega1284p/Kconfig b/boards/atmega1284p/Kconfig new file mode 100644 index 0000000000..3362613523 --- /dev/null +++ b/boards/atmega1284p/Kconfig @@ -0,0 +1,21 @@ +# 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 "atmega1284p" if BOARD_ATMEGA1284P + +config BOARD_ATMEGA1284P + bool + default y + select CPU_MODEL_ATMEGA1284P + select HAS_PERIPH_ADC + select HAS_PERIPH_GPIO + select HAS_PERIPH_GPIO_IRQ + select HAS_PERIPH_I2C + select HAS_PERIPH_PWM + select HAS_PERIPH_SPI + select HAS_PERIPH_TIMER + select HAS_PERIPH_UART From 050b8229b21472398e6efc32fdf21d189ebd9b8e Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 4 Jun 2020 18:32:37 +0200 Subject: [PATCH 3/6] boards/mega-xplained: Add Kconfig symbols --- boards/mega-xplained/Kconfig | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 boards/mega-xplained/Kconfig diff --git a/boards/mega-xplained/Kconfig b/boards/mega-xplained/Kconfig new file mode 100644 index 0000000000..1bde78c24f --- /dev/null +++ b/boards/mega-xplained/Kconfig @@ -0,0 +1,20 @@ +# 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 "mega-xplained" if BOARD_MEGA_XPLAINED + +config BOARD_MEGA_XPLAINED + bool + default y + select CPU_MODEL_ATMEGA1284P + select HAS_PERIPH_ADC + select HAS_PERIPH_I2C + select HAS_PERIPH_RTC + select HAS_PERIPH_RTT + select HAS_PERIPH_SPI + select HAS_PERIPH_TIMER + select HAS_PERIPH_UART From ed0743ddb326c29b5997f2a24a31017df6024ae4 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 17 Jun 2020 12:59:38 +0200 Subject: [PATCH 4/6] cpu/atmega1281: Add Kconfig symbols --- cpu/atmega1281/Kconfig | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 cpu/atmega1281/Kconfig diff --git a/cpu/atmega1281/Kconfig b/cpu/atmega1281/Kconfig new file mode 100644 index 0000000000..dac6ae74fa --- /dev/null +++ b/cpu/atmega1281/Kconfig @@ -0,0 +1,29 @@ + +# 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. + +## CPU Models +config CPU_MODEL_ATMEGA1281 + bool + select CPU_FAM_ATMEGA128 + select HAS_ATMEGA_PCINT1 + select HAS_ATMEGA_PCINT2 + select HAS_CPU_ATMEGA1281 + +## Definition of specific features +config HAS_CPU_ATMEGA1281 + bool + help + Indicates that a 'atmega1281' cpu is being used. + +## Common CPU symbols +config CPU_MODEL + default "atmega1281" if CPU_MODEL_ATMEGA1281 + +config CPU + default "atmega1281" if CPU_MODEL_ATMEGA1281 + +source "$(RIOTCPU)/atmega_common/Kconfig" From 740e83b163dc7d81dac61b5ccba601e012baa691 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 4 Jun 2020 18:32:54 +0200 Subject: [PATCH 5/6] boards/waspmote-pro: Add Kconfig symbols --- boards/waspmote-pro/Kconfig | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 boards/waspmote-pro/Kconfig diff --git a/boards/waspmote-pro/Kconfig b/boards/waspmote-pro/Kconfig new file mode 100644 index 0000000000..6ca6edefeb --- /dev/null +++ b/boards/waspmote-pro/Kconfig @@ -0,0 +1,18 @@ +# 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 "waspmote-pro" if BOARD_WASPMOTE_PRO + +config BOARD_WASPMOTE_PRO + bool + default y + select CPU_MODEL_ATMEGA1281 + select HAS_PERIPH_ADC + select HAS_PERIPH_I2C + select HAS_PERIPH_SPI + select HAS_PERIPH_TIMER + select HAS_PERIPH_UART From 819efea0ec59880a8d0f74776fa20ba00ad45839 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 4 Jun 2020 18:33:11 +0200 Subject: [PATCH 6/6] tests/kconfig_features: Add atmega128x-based boards to whitelist --- tests/kconfig_features/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/kconfig_features/Makefile b/tests/kconfig_features/Makefile index fae1e4b165..0a029b4248 100644 --- a/tests/kconfig_features/Makefile +++ b/tests/kconfig_features/Makefile @@ -4,6 +4,7 @@ BOARD_WHITELIST += arduino-duemilanove \ arduino-mega2560 \ arduino-nano \ arduino-uno \ + atmega1284p \ atmega328p \ cc1312-launchpad \ cc1352-launchpad \ @@ -12,6 +13,7 @@ BOARD_WHITELIST += arduino-duemilanove \ cc2650stk \ derfmega128 \ ikea-tradfri \ + mega-xplained \ microduino-corerf \ samr21-xpro \ slstk3401a \ @@ -20,7 +22,8 @@ BOARD_WHITELIST += arduino-duemilanove \ slwstk6000b-slwrb4150a \ slwstk6000b-slwrb4162a \ stk3600 \ - stk3700 + stk3700 \ + waspmote-pro all: checks