mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/atmega: cleanup dependencies handling
This commit is contained in:
parent
29e5c3af67
commit
629003d042
6
cpu/atmega1281/Makefile.dep
Normal file
6
cpu/atmega1281/Makefile.dep
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# expand atmega_pcint for additional PCINTs of atmega1281
|
||||||
|
ifneq (,$(filter atmega_pcint,$(USEMODULE)))
|
||||||
|
USEMODULE += atmega_pcint1 atmega_pcint2
|
||||||
|
endif
|
||||||
|
|
||||||
|
include $(RIOTCPU)/atmega_common/Makefile.dep
|
@ -1,13 +1,5 @@
|
|||||||
# tell the build system that the CPU depends on the atmega common files
|
|
||||||
USEMODULE += atmega_common
|
|
||||||
|
|
||||||
RAM_LEN = 8K
|
RAM_LEN = 8K
|
||||||
ROM_LEN = 128K
|
ROM_LEN = 128K
|
||||||
|
|
||||||
# expand atmega_pcint for additional PCINTs of atmega1281
|
|
||||||
ifneq (,$(filter atmega_pcint,$(USEMODULE)))
|
|
||||||
USEMODULE += atmega_pcint1 atmega_pcint2
|
|
||||||
endif
|
|
||||||
|
|
||||||
# CPU depends on the atmega common module, so include it
|
# CPU depends on the atmega common module, so include it
|
||||||
include $(RIOTCPU)/atmega_common/Makefile.include
|
include $(RIOTCPU)/atmega_common/Makefile.include
|
||||||
|
@ -1,13 +1,5 @@
|
|||||||
# tell the build system that the CPU depends on the atmega common files
|
|
||||||
USEMODULE += atmega_common
|
|
||||||
|
|
||||||
RAM_LEN = 16K
|
RAM_LEN = 16K
|
||||||
ROM_LEN = 128K
|
ROM_LEN = 128K
|
||||||
|
|
||||||
# expand atmega_pcint for atmega1284p
|
|
||||||
ifneq (,$(filter atmega_pcint,$(USEMODULE)))
|
|
||||||
USEMODULE += atmega_pcint1 atmega_pcint2 atmega_pcint3
|
|
||||||
endif
|
|
||||||
|
|
||||||
# CPU depends on the atmega common module, so include it
|
# CPU depends on the atmega common module, so include it
|
||||||
include $(RIOTCPU)/atmega_common/Makefile.include
|
include $(RIOTCPU)/atmega_common/Makefile.include
|
||||||
|
@ -1,13 +1,5 @@
|
|||||||
# tell the build system that the CPU depends on the atmega common files
|
|
||||||
USEMODULE += atmega_common
|
|
||||||
|
|
||||||
RAM_LEN = 16K
|
RAM_LEN = 16K
|
||||||
ROM_LEN = 128K
|
ROM_LEN = 128K
|
||||||
|
|
||||||
# expand atmega_pcint for atmega128rfa1
|
|
||||||
ifneq (,$(filter atmega_pcint,$(USEMODULE)))
|
|
||||||
USEMODULE += atmega_pcint1
|
|
||||||
endif
|
|
||||||
|
|
||||||
# CPU depends on the atmega common module, so include it
|
# CPU depends on the atmega common module, so include it
|
||||||
include $(RIOTCPU)/atmega_common/Makefile.include
|
include $(RIOTCPU)/atmega_common/Makefile.include
|
||||||
|
@ -1,13 +1,5 @@
|
|||||||
# tell the build system that the CPU depends on the atmega common files
|
|
||||||
USEMODULE += atmega_common
|
|
||||||
|
|
||||||
RAM_LEN = 8K
|
RAM_LEN = 8K
|
||||||
ROM_LEN = 256K
|
ROM_LEN = 256K
|
||||||
|
|
||||||
# expand atmega_pcint with additional PCINTs for atmega2560
|
|
||||||
ifneq (,$(filter atmega_pcint,$(USEMODULE)))
|
|
||||||
USEMODULE += atmega_pcint1 atmega_pcint2
|
|
||||||
endif
|
|
||||||
|
|
||||||
# CPU depends on the atmega common module, so include it
|
# CPU depends on the atmega common module, so include it
|
||||||
include $(RIOTCPU)/atmega_common/Makefile.include
|
include $(RIOTCPU)/atmega_common/Makefile.include
|
||||||
|
@ -1,13 +1,5 @@
|
|||||||
# tell the build system that the CPU depends on the atmega common files
|
|
||||||
USEMODULE += atmega_common
|
|
||||||
|
|
||||||
RAM_LEN = 32K
|
RAM_LEN = 32K
|
||||||
ROM_LEN = 256K
|
ROM_LEN = 256K
|
||||||
|
|
||||||
# expand atmega_pcint for atmega256rfr2
|
|
||||||
ifneq (,$(filter atmega_pcint,$(USEMODULE)))
|
|
||||||
USEMODULE += atmega_pcint1
|
|
||||||
endif
|
|
||||||
|
|
||||||
# CPU depends on the atmega common module, so include it
|
# CPU depends on the atmega common module, so include it
|
||||||
include $(RIOTCPU)/atmega_common/Makefile.include
|
include $(RIOTCPU)/atmega_common/Makefile.include
|
||||||
|
6
cpu/atmega328p/Makefile.dep
Normal file
6
cpu/atmega328p/Makefile.dep
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# additional PCINTs for atmega328p
|
||||||
|
ifneq (,$(filter atmega_pcint,$(USEMODULE)))
|
||||||
|
USEMODULE += atmega_pcint1 atmega_pcint2
|
||||||
|
endif
|
||||||
|
|
||||||
|
include $(RIOTCPU)/atmega_common/Makefile.dep
|
@ -1,13 +1,5 @@
|
|||||||
# tell the build system that the CPU depends on the atmega common files
|
|
||||||
USEMODULE += atmega_common
|
|
||||||
|
|
||||||
RAM_LEN = 2K
|
RAM_LEN = 2K
|
||||||
ROM_LEN = 32K
|
ROM_LEN = 32K
|
||||||
|
|
||||||
# additional PCINTs for atmega328p
|
|
||||||
ifneq (,$(filter atmega_pcint,$(USEMODULE)))
|
|
||||||
USEMODULE += atmega_pcint1 atmega_pcint2
|
|
||||||
endif
|
|
||||||
|
|
||||||
# CPU depends on the atmega common module, so include it
|
# CPU depends on the atmega common module, so include it
|
||||||
include $(RIOTCPU)/atmega_common/Makefile.include
|
include $(RIOTCPU)/atmega_common/Makefile.include
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
# this CPU implementation is using the new core/CPU interface
|
# this CPU implementation is using the new core/CPU interface
|
||||||
CFLAGS += -DCOREIF_NG=1
|
CFLAGS += -DCOREIF_NG=1
|
||||||
|
|
||||||
# tell the build system that the CPU depends on the atmega common files
|
|
||||||
USEMODULE += atmega_common
|
|
||||||
|
|
||||||
# define path to atmega common module, which is needed for this CPU
|
# define path to atmega common module, which is needed for this CPU
|
||||||
export ATMEGA_COMMON = $(RIOTCPU)/atmega_common/
|
export ATMEGA_COMMON = $(RIOTCPU)/atmega_common/
|
||||||
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
# tell the build system to build the atmega common files
|
||||||
|
USEMODULE += atmega_common
|
||||||
|
|
||||||
# expand atmega_pcint module
|
# expand atmega_pcint module
|
||||||
ifneq (,$(filter atmega_pcint,$(USEMODULE)))
|
ifneq (,$(filter atmega_pcint,$(USEMODULE)))
|
||||||
USEMODULE += atmega_pcint0
|
USEMODULE += atmega_pcint0
|
||||||
|
@ -9,31 +9,4 @@ USEMODULE += avr_libc_extra
|
|||||||
PSEUDOMODULES += atmega_pcint
|
PSEUDOMODULES += atmega_pcint
|
||||||
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
|
|
||||||
|
|
||||||
include $(RIOTMAKE)/arch/atmega.inc.mk
|
include $(RIOTMAKE)/arch/atmega.inc.mk
|
||||||
|
Loading…
Reference in New Issue
Block a user