From cc6a4929f4becd5a488e2d9ddea4b59496643be5 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 4 Jun 2020 16:42:19 +0200 Subject: [PATCH 1/5] cpu/atmega256rfr2: Add Kconfig symbols --- cpu/atmega256rfr2/Kconfig | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 cpu/atmega256rfr2/Kconfig diff --git a/cpu/atmega256rfr2/Kconfig b/cpu/atmega256rfr2/Kconfig new file mode 100644 index 0000000000..6b7fa25632 --- /dev/null +++ b/cpu/atmega256rfr2/Kconfig @@ -0,0 +1,35 @@ +# 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_ATMEGA256RF + bool + select CPU_COMMON_ATMEGA + +## CPU Models +config CPU_MODEL_ATMEGA256RFR2 + bool + select CPU_FAM_ATMEGA256RF + select HAS_ATMEGA_PCINT1 + select HAS_CPU_ATMEGA256RFR2 + +## Definition of specific features +config HAS_CPU_ATMEGA256RFR2 + bool + help + Indicates that a 'atmega256rfr2' cpu is being used. + +## Common CPU symbols +config CPU_FAM + default "atmega256rf" if CPU_FAM_ATMEGA256RF + +config CPU_MODEL + default "atmega256rfr2" if CPU_MODEL_ATMEGA256RFR2 + +config CPU + default "atmega256rfr2" if CPU_MODEL_ATMEGA256RFR2 + +source "$(RIOTCPU)/atmega_common/Kconfig" From 159d1dee77f84ac6bd309c0ef2d873e59f5956f6 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 4 Jun 2020 16:42:54 +0200 Subject: [PATCH 2/5] boards/atmega256rfr2: Add Kconfig symbols --- boards/atmega256rfr2-xpro/Kconfig | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 boards/atmega256rfr2-xpro/Kconfig diff --git a/boards/atmega256rfr2-xpro/Kconfig b/boards/atmega256rfr2-xpro/Kconfig new file mode 100644 index 0000000000..1ce778b61c --- /dev/null +++ b/boards/atmega256rfr2-xpro/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 "atmega256rfr2-xpro" if BOARD_ATMEGA256RFR2_XPRO + +config BOARD_ATMEGA256RFR2_XPRO + bool + default y + select CPU_MODEL_ATMEGA256RFR2 + 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 c2c1ecd3b8ad36d2115febaf6f5dcbdea4217d2c Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 4 Jun 2020 16:43:24 +0200 Subject: [PATCH 3/5] boards/avr-rss2: Add Kconfig symbols --- boards/avr-rss2/Kconfig | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 boards/avr-rss2/Kconfig diff --git a/boards/avr-rss2/Kconfig b/boards/avr-rss2/Kconfig new file mode 100644 index 0000000000..babf55b13b --- /dev/null +++ b/boards/avr-rss2/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 "avr-rss2" if BOARD_AVR_RSS2 + +config BOARD_AVR_RSS2 + bool + default y + select CPU_MODEL_ATMEGA256RFR2 + 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 5408d7a142e7b244b43e8d898bc5df563fa5b0ca Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 4 Jun 2020 16:43:41 +0200 Subject: [PATCH 4/5] boards/derfmega256: Add Kconfig symbols --- boards/derfmega256/Kconfig | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 boards/derfmega256/Kconfig diff --git a/boards/derfmega256/Kconfig b/boards/derfmega256/Kconfig new file mode 100644 index 0000000000..fe2a9d0732 --- /dev/null +++ b/boards/derfmega256/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 "derfmega256" if BOARD_DERFMEGA256 + +config BOARD_DERFMEGA256 + bool + default y + select CPU_MODEL_ATMEGA256RFR2 + 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 c58d2ce264ddcfb64b3601710023b6504775ea5d Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 4 Jun 2020 16:43:57 +0200 Subject: [PATCH 5/5] tests/kconfig_features: Add atmega256rfr2-based boards to whitelist --- tests/kconfig_features/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/kconfig_features/Makefile b/tests/kconfig_features/Makefile index e3991609ff..d0cf4fc844 100644 --- a/tests/kconfig_features/Makefile +++ b/tests/kconfig_features/Makefile @@ -6,13 +6,16 @@ BOARD_WHITELIST += arduino-duemilanove \ arduino-nano \ arduino-uno \ atmega1284p \ + atmega256rfr2-xpro \ atmega328p \ + avr-rss2 \ cc1312-launchpad \ cc1352-launchpad \ cc1352p-launchpad \ cc2650-launchpad \ cc2650stk \ derfmega128 \ + derfmega256 \ ikea-tradfri \ mega-xplained \ microduino-corerf \