From b534f26e177a74f8f927f167c574c6bb95f98f83 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 30 Sep 2021 13:35:44 +0200 Subject: [PATCH] cpu/avr8_common: model Kconfig --- cpu/avr8_common/Kconfig | 22 ++++++++++++++++++++++ cpu/avr8_common/avr_libc_extra/Kconfig | 14 ++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 cpu/avr8_common/avr_libc_extra/Kconfig diff --git a/cpu/avr8_common/Kconfig b/cpu/avr8_common/Kconfig index 1c5ab86dd7..c60d56fa36 100644 --- a/cpu/avr8_common/Kconfig +++ b/cpu/avr8_common/Kconfig @@ -11,6 +11,10 @@ config CPU_ARCH_AVR8 select HAS_ARCH_8BIT select HAS_ARCH_AVR8 + select MODULE_MALLOC_THREAD_SAFE if TEST_KCONFIG + # static C++ constructors need guards for thread safe initialization + select MODULE_CXX_CTOR_GUARDS if MODULE_CPP + ## Common CPU symbols config CPU_ARCH default "avr8" if CPU_ARCH_AVR8 @@ -23,3 +27,21 @@ 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. + +# 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" diff --git a/cpu/avr8_common/avr_libc_extra/Kconfig b/cpu/avr8_common/avr_libc_extra/Kconfig new file mode 100644 index 0000000000..33c7ebe05a --- /dev/null +++ b/cpu/avr8_common/avr_libc_extra/Kconfig @@ -0,0 +1,14 @@ +# Copyright (c) 2021 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 MODULE_AVR_LIBC_EXTRA + bool + depends on TEST_KCONFIG + depends on CPU_ARCH_AVR8 + default y + help + AVR libc RIOT-specific support code.