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:
commit
d191b9c38a
21
boards/atmega1284p/Kconfig
Normal file
21
boards/atmega1284p/Kconfig
Normal 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
|
20
boards/mega-xplained/Kconfig
Normal file
20
boards/mega-xplained/Kconfig
Normal 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
|
18
boards/waspmote-pro/Kconfig
Normal file
18
boards/waspmote-pro/Kconfig
Normal 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
29
cpu/atmega1281/Kconfig
Normal 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
29
cpu/atmega1284p/Kconfig
Normal 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"
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user