1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #14211 from leandrolanzieri/pr/kconfig/atmega2560_boards_symbols

boards/arduino-mega2560: Model features in Kconfig
This commit is contained in:
Peter Kietzmann 2020-06-22 15:04:43 +02:00 committed by GitHub
commit 332ae60e04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 52 additions and 0 deletions

View File

@ -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"

35
cpu/atmega2560/Kconfig Normal file
View File

@ -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"

View File

@ -1,6 +1,7 @@
include ../Makefile.tests_common
BOARD_WHITELIST += arduino-duemilanove \
arduino-mega2560 \
arduino-nano \
arduino-uno \
atmega328p \