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:
commit
f63066974c
16
boards/arduino-leonardo/Kconfig
Normal file
16
boards/arduino-leonardo/Kconfig
Normal 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
33
cpu/atmega32u4/Kconfig
Normal 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"
|
||||
@ -1,6 +1,7 @@
|
||||
include ../Makefile.tests_common
|
||||
|
||||
BOARD_WHITELIST += arduino-duemilanove \
|
||||
arduino-leonardo \
|
||||
arduino-mega2560 \
|
||||
arduino-nano \
|
||||
arduino-uno \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user