From 67ab640caf430620d5564c530a6e88c092ff47ec Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Fri, 5 Jun 2020 13:03:19 +0200 Subject: [PATCH 1/3] cpu/atmega2560: Add Kconfig symbols --- cpu/atmega2560/Kconfig | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 cpu/atmega2560/Kconfig diff --git a/cpu/atmega2560/Kconfig b/cpu/atmega2560/Kconfig new file mode 100644 index 0000000000..0dd4983e06 --- /dev/null +++ b/cpu/atmega2560/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_ATMEGA256 + bool + select CPU_COMMON_ATMEGA + +## CPU Models +config CPU_MODEL_ATMEGA2560 + bool + select CPU_FAM_ATMEGA256 + select HAS_ATMEGA_PCINT1 + select HAS_ATMEGA_PCINT2 + select HAS_CPU_ATMEGA2560 + +## Definition of specific features +config HAS_CPU_ATMEGA2560 + bool + help + Indicates that a 'atmega2560' cpu is being used. + +## Common CPU symbols +config CPU_FAM + default "atmega256" if CPU_FAM_ATMEGA256 + +config CPU_MODEL + default "atmega2560" if CPU_MODEL_ATMEGA2560 + +config CPU + default "atmega2560" if CPU_FAM_ATMEGA256 + +source "$(RIOTCPU)/atmega_common/Kconfig" From a8a6babff5d044d44a85e5c089f5dde862d125f7 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Fri, 5 Jun 2020 13:03:41 +0200 Subject: [PATCH 2/3] boards/arduino-mega2560: Add Kconfig symbols --- boards/arduino-mega2560/Kconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 boards/arduino-mega2560/Kconfig diff --git a/boards/arduino-mega2560/Kconfig b/boards/arduino-mega2560/Kconfig new file mode 100644 index 0000000000..a89be64ae1 --- /dev/null +++ b/boards/arduino-mega2560/Kconfig @@ -0,0 +1,16 @@ +# 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 "arduino-mega2560" if BOARD_ARDUINO_MEGA2560 + +config BOARD_ARDUINO_MEGA2560 + bool + default y + select CPU_MODEL_ATMEGA2560 + select BOARD_COMMON_ARDUINO_ATMEGA + +source "$(RIOTBOARD)/common/arduino-atmega/Kconfig" From 16a04527428b9491504aaee3ee2e996c92e14027 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Fri, 5 Jun 2020 13:04:18 +0200 Subject: [PATCH 3/3] tests/kconfig_features: Add arduino-mega2560 to whitelist --- tests/kconfig_features/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/kconfig_features/Makefile b/tests/kconfig_features/Makefile index 4d8c0f9451..7305dc6d59 100644 --- a/tests/kconfig_features/Makefile +++ b/tests/kconfig_features/Makefile @@ -1,6 +1,7 @@ include ../Makefile.tests_common BOARD_WHITELIST += arduino-duemilanove \ + arduino-mega2560 \ arduino-nano \ arduino-uno \ atmega328p \