2014-07-15 12:08:52 +02:00
|
|
|
# include module specific includes
|
2019-08-27 16:06:41 +02:00
|
|
|
INCLUDES += -I$(RIOTCPU)/atmega_common/include \
|
|
|
|
-isystem$(RIOTCPU)/atmega_common/avr_libc_extra/include \
|
|
|
|
-isystem$(RIOTCPU)/atmega_common/avr_libc_extra/include/vendor
|
2017-02-02 20:08:06 +01:00
|
|
|
|
2018-04-27 12:17:01 +02:00
|
|
|
# avr libc needs some RIOT-specific support code
|
|
|
|
USEMODULE += avr_libc_extra
|
2018-05-15 00:21:09 +02:00
|
|
|
|
2019-08-01 09:23:04 +02:00
|
|
|
PSEUDOMODULES += atmega_pcint
|
|
|
|
PSEUDOMODULES += atmega_pcint%
|
|
|
|
|
|
|
|
# expand atmega_pcint module
|
|
|
|
# atmega16u4 only features atmega_pcint0, therefore additional pseudomodules
|
|
|
|
# are activated in each CPU's Makefile.include
|
|
|
|
ifneq (,$(filter atmega_pcint,$(USEMODULE)))
|
|
|
|
USEMODULE += atmega_pcint0
|
|
|
|
endif
|
|
|
|
|
|
|
|
# feature for atmega_pcint0 module
|
|
|
|
ifneq (,$(filter atmega_pcint0,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += atmega_pcint0
|
|
|
|
endif
|
|
|
|
|
|
|
|
# feature for atmega_pcint1 module
|
|
|
|
ifneq (,$(filter atmega_pcint1,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += atmega_pcint1
|
|
|
|
endif
|
|
|
|
|
|
|
|
# feature for atmega_pcint2 module
|
|
|
|
ifneq (,$(filter atmega_pcint2,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += atmega_pcint2
|
|
|
|
endif
|
|
|
|
|
|
|
|
# feature for atmega_pcint3 module
|
|
|
|
ifneq (,$(filter atmega_pcint3,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += atmega_pcint3
|
|
|
|
endif
|
|
|
|
|
2018-05-15 00:21:09 +02:00
|
|
|
include $(RIOTMAKE)/arch/atmega.inc.mk
|