2021-01-02 16:36:20 +01:00
|
|
|
# avr libc needs some RIOT-specific support code
|
|
|
|
USEMODULE += avr_libc_extra
|
|
|
|
|
|
|
|
# tell the build system to build the avr8 common files
|
2022-10-20 18:50:22 +02:00
|
|
|
USEMODULE += avr8_common avr8_common_periph
|
|
|
|
|
|
|
|
# All avr8 CPUs provide PM
|
2024-01-11 21:14:43 +01:00
|
|
|
DEFAULT_MODULE += pm_layered
|
2021-01-02 16:36:20 +01:00
|
|
|
|
|
|
|
# The AVR-libc provides no thread safe malloc implementation and has no hooks
|
|
|
|
# to inject. Use malloc_thread_safe to link calls to malloc to safe wrappers
|
|
|
|
# instead.
|
|
|
|
USEMODULE += malloc_thread_safe
|
|
|
|
|
2022-09-09 11:31:16 +02:00
|
|
|
# The AVR-libc provides no strerror, so we provide it via tiny_strerror
|
|
|
|
USEMODULE += tiny_strerror_as_strerror
|
|
|
|
|
2021-01-02 16:36:20 +01:00
|
|
|
# static C++ constructors need guards for thread safe initialization
|
|
|
|
ifneq (,$(filter cpp,$(FEATURES_USED)))
|
|
|
|
USEMODULE += cxx_ctor_guards
|
|
|
|
endif
|