mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
ab70f20069
Co-authored-by: Marian Buschsieweke <marian.buschsieweke@posteo.net> Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
61 lines
1.5 KiB
Plaintext
61 lines
1.5 KiB
Plaintext
# Copyright (c) 2020 HAW Hamburg
|
|
# 2021 Gerson Fernando Budke
|
|
#
|
|
# 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_ARCH_AVR8
|
|
bool
|
|
select HAS_ARCH_8BIT
|
|
select HAS_ARCH_AVR8
|
|
select HAS_PERIPH_PM
|
|
|
|
select MODULE_AVR8_COMMON_PERIPH if TEST_KCONFIG
|
|
select MODULE_PM_LAYERED if TEST_KCONFIG
|
|
select MODULE_MALLOC_THREAD_SAFE if TEST_KCONFIG
|
|
select MODULE_TINY_STRERROR_AS_STRERROR if TEST_KCONFIG
|
|
# static C++ constructors need guards for thread safe initialization
|
|
select MODULE_CXX_CTOR_GUARDS if MODULE_CPP
|
|
# new and delete operators needed
|
|
select MODULE_CPP_NEW_DELETE if MODULE_CPP
|
|
|
|
## Common CPU symbols
|
|
config CPU_ARCH
|
|
default "avr8" if CPU_ARCH_AVR8
|
|
|
|
config CPU_CORE
|
|
default "avr" if CPU_CORE_AVR
|
|
|
|
## Declaration of specific features
|
|
config HAS_ARCH_AVR8
|
|
bool
|
|
help
|
|
Indicates that the current architecture is Atmel AVR8.
|
|
|
|
if CPU_ARCH_AVR8
|
|
|
|
config MODULE_AVR8_COMMON
|
|
bool
|
|
depends on TEST_KCONFIG
|
|
default y
|
|
help
|
|
AVR-8 common code.
|
|
|
|
config MODULE_AVR8_COMMON_PERIPH
|
|
bool
|
|
depends on TEST_KCONFIG
|
|
default y
|
|
help
|
|
Common peripheral drivers used across different AVR-8 MCU families.
|
|
|
|
# the atmel port uses stdio_uart by default
|
|
choice STDIO_IMPLEMENTATION
|
|
default MODULE_STDIO_UART
|
|
endchoice
|
|
|
|
endif # CPU_ARCH_AVR8
|
|
|
|
rsource "avr_libc_extra/Kconfig"
|