cpu/atmega_common: Enable cpp feature
This commit is contained in:
parent
6520db8ed9
commit
7b49310147
@ -17,6 +17,7 @@ config CPU_COMMON_ATMEGA
|
|||||||
bool
|
bool
|
||||||
select CPU_CORE_AVR
|
select CPU_CORE_AVR
|
||||||
select HAS_ATMEGA_PCINT0
|
select HAS_ATMEGA_PCINT0
|
||||||
|
select HAS_CPP
|
||||||
select HAS_PERIPH_CPUID
|
select HAS_PERIPH_CPUID
|
||||||
select HAS_PERIPH_EEPROM
|
select HAS_PERIPH_EEPROM
|
||||||
select HAS_PERIPH_GPIO
|
select HAS_PERIPH_GPIO
|
||||||
|
|||||||
@ -4,4 +4,8 @@ MODULE = atmega_common
|
|||||||
# add a list of subdirectories, that should also be build
|
# add a list of subdirectories, that should also be build
|
||||||
DIRS = periph avr_libc_extra
|
DIRS = periph avr_libc_extra
|
||||||
|
|
||||||
|
ifneq (,$(filter cpu_atmega_common_cxx,$(USEMODULE)))
|
||||||
|
DIRS += cxx
|
||||||
|
endif
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.base
|
include $(RIOTBASE)/Makefile.base
|
||||||
|
|||||||
@ -34,3 +34,8 @@ endif
|
|||||||
ifneq (,$(filter atmega_pcint3,$(USEMODULE)))
|
ifneq (,$(filter atmega_pcint3,$(USEMODULE)))
|
||||||
FEATURES_REQUIRED += atmega_pcint3
|
FEATURES_REQUIRED += atmega_pcint3
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# static C++ constructors need guards for thread safe initialization
|
||||||
|
ifneq (,$(filter cpp,$(FEATURES_USED)))
|
||||||
|
USEMODULE += cxx_ctor_guards
|
||||||
|
endif
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
FEATURES_PROVIDED += arch_8bit
|
FEATURES_PROVIDED += arch_8bit
|
||||||
FEATURES_PROVIDED += arch_avr8
|
FEATURES_PROVIDED += arch_avr8
|
||||||
FEATURES_PROVIDED += atmega_pcint0
|
FEATURES_PROVIDED += atmega_pcint0
|
||||||
|
FEATURES_PROVIDED += cpp
|
||||||
FEATURES_PROVIDED += periph_cpuid
|
FEATURES_PROVIDED += periph_cpuid
|
||||||
FEATURES_PROVIDED += periph_eeprom
|
FEATURES_PROVIDED += periph_eeprom
|
||||||
FEATURES_PROVIDED += periph_gpio periph_gpio_irq
|
FEATURES_PROVIDED += periph_gpio periph_gpio_irq
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user