1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 23:41:18 +01:00

Merge pull request #14195 from leandrolanzieri/pr/kconfig/atmega32u4_boards_symbols

boards/arduino-leonardo: Model features in Kconfig
This commit is contained in:
Francisco 2020-06-23 14:08:27 +02:00 committed by GitHub
commit f63066974c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 50 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-leonardo" if BOARD_ARDUINO_LEONARDO
config BOARD_ARDUINO_LEONARDO
bool
default y
select BOARD_COMMON_ARDUINO_ATMEGA
select CPU_MODEL_ATMEGA32U4
source "$(RIOTBOARD)/common/arduino-atmega/Kconfig"

33
cpu/atmega32u4/Kconfig Normal file
View File

@ -0,0 +1,33 @@
# 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_ATMEGA32
bool
select CPU_COMMON_ATMEGA
## CPU Models
config CPU_MODEL_ATMEGA32U4
bool
select CPU_FAM_ATMEGA32
select HAS_CPU_ATMEGA32U4
## Definition of specific features
config HAS_CPU_ATMEGA32U4
bool
help
Indicates that a 'atmega32u4' cpu is being used.
## Common CPU symbols
config CPU_FAM
default "atmega32" if CPU_FAM_ATMEGA32
config CPU_MODEL
default "atmega32u4" if CPU_MODEL_ATMEGA32U4
config CPU
default "atmega32u4" if CPU_MODEL_ATMEGA32U4
source "$(RIOTCPU)/atmega_common/Kconfig"

View File

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