cpu/atmega_common: Enable cpp feature

This commit is contained in:
Marian Buschsieweke 2020-07-11 22:37:52 +02:00
parent 6520db8ed9
commit 7b49310147
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F
4 changed files with 11 additions and 0 deletions

View File

@ -17,6 +17,7 @@ config CPU_COMMON_ATMEGA
bool
select CPU_CORE_AVR
select HAS_ATMEGA_PCINT0
select HAS_CPP
select HAS_PERIPH_CPUID
select HAS_PERIPH_EEPROM
select HAS_PERIPH_GPIO

View File

@ -4,4 +4,8 @@ MODULE = atmega_common
# add a list of subdirectories, that should also be build
DIRS = periph avr_libc_extra
ifneq (,$(filter cpu_atmega_common_cxx,$(USEMODULE)))
DIRS += cxx
endif
include $(RIOTBASE)/Makefile.base

View File

@ -34,3 +34,8 @@ endif
ifneq (,$(filter atmega_pcint3,$(USEMODULE)))
FEATURES_REQUIRED += atmega_pcint3
endif
# static C++ constructors need guards for thread safe initialization
ifneq (,$(filter cpp,$(FEATURES_USED)))
USEMODULE += cxx_ctor_guards
endif

View File

@ -1,6 +1,7 @@
FEATURES_PROVIDED += arch_8bit
FEATURES_PROVIDED += arch_avr8
FEATURES_PROVIDED += atmega_pcint0
FEATURES_PROVIDED += cpp
FEATURES_PROVIDED += periph_cpuid
FEATURES_PROVIDED += periph_eeprom
FEATURES_PROVIDED += periph_gpio periph_gpio_irq