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

Merge pull request #14208 from leandrolanzieri/pr/kconfig/atmega128x_boards_symbols

boards/atmega128x-based: Model features in Kconfig
This commit is contained in:
Peter Kietzmann 2020-06-22 18:02:10 +02:00 committed by GitHub
commit d191b9c38a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 121 additions and 1 deletions

View File

@ -0,0 +1,21 @@
# 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 "atmega1284p" if BOARD_ATMEGA1284P
config BOARD_ATMEGA1284P
bool
default y
select CPU_MODEL_ATMEGA1284P
select HAS_PERIPH_ADC
select HAS_PERIPH_GPIO
select HAS_PERIPH_GPIO_IRQ
select HAS_PERIPH_I2C
select HAS_PERIPH_PWM
select HAS_PERIPH_SPI
select HAS_PERIPH_TIMER
select HAS_PERIPH_UART

View File

@ -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 "mega-xplained" if BOARD_MEGA_XPLAINED
config BOARD_MEGA_XPLAINED
bool
default y
select CPU_MODEL_ATMEGA1284P
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

View File

@ -0,0 +1,18 @@
# 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 "waspmote-pro" if BOARD_WASPMOTE_PRO
config BOARD_WASPMOTE_PRO
bool
default y
select CPU_MODEL_ATMEGA1281
select HAS_PERIPH_ADC
select HAS_PERIPH_I2C
select HAS_PERIPH_SPI
select HAS_PERIPH_TIMER
select HAS_PERIPH_UART

29
cpu/atmega1281/Kconfig Normal file
View File

@ -0,0 +1,29 @@
# 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.
## CPU Models
config CPU_MODEL_ATMEGA1281
bool
select CPU_FAM_ATMEGA128
select HAS_ATMEGA_PCINT1
select HAS_ATMEGA_PCINT2
select HAS_CPU_ATMEGA1281
## Definition of specific features
config HAS_CPU_ATMEGA1281
bool
help
Indicates that a 'atmega1281' cpu is being used.
## Common CPU symbols
config CPU_MODEL
default "atmega1281" if CPU_MODEL_ATMEGA1281
config CPU
default "atmega1281" if CPU_MODEL_ATMEGA1281
source "$(RIOTCPU)/atmega_common/Kconfig"

29
cpu/atmega1284p/Kconfig Normal file
View File

@ -0,0 +1,29 @@
# 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.
## CPU Models
config CPU_MODEL_ATMEGA1284P
bool
select CPU_FAM_ATMEGA128
select HAS_ATMEGA_PCINT1
select HAS_ATMEGA_PCINT2
select HAS_ATMEGA_PCINT3
select HAS_CPU_ATMEGA1284P
## Definition of specific features
config HAS_CPU_ATMEGA1284P
bool
help
Indicates that a 'atmega1284p' cpu is being used.
## Common CPU symbols
config CPU_MODEL
default "atmega1284p" if CPU_MODEL_ATMEGA1284P
config CPU
default "atmega1284p" if CPU_MODEL_ATMEGA1284P
source "$(RIOTCPU)/atmega_common/Kconfig"

View File

@ -4,6 +4,7 @@ BOARD_WHITELIST += arduino-duemilanove \
arduino-mega2560 \
arduino-nano \
arduino-uno \
atmega1284p \
atmega328p \
cc1312-launchpad \
cc1352-launchpad \
@ -12,6 +13,7 @@ BOARD_WHITELIST += arduino-duemilanove \
cc2650stk \
derfmega128 \
ikea-tradfri \
mega-xplained \
microduino-corerf \
samr21-xpro \
slstk3401a \
@ -20,7 +22,8 @@ BOARD_WHITELIST += arduino-duemilanove \
slwstk6000b-slwrb4150a \
slwstk6000b-slwrb4162a \
stk3600 \
stk3700
stk3700 \
waspmote-pro
all: checks