mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-15 17:32:44 +01:00
307e8c7a17
Introduce XMEGA EBI driver. This enable EBI for use with all memory supported by the device and peripherals. It include support to SRAM, SDRAM, LCDs or any other external bus access. Note: This feature only works for A1/A1U series, which are, the series with EBI hardware. Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
51 lines
1.1 KiB
Makefile
51 lines
1.1 KiB
Makefile
export CPU_ATXMEGA 1
|
|
|
|
# should expand RAM ?
|
|
EXP_RAM = 0
|
|
|
|
# CPU ROM/RAM
|
|
ifneq (,$(findstring atxmega8,$(CPU_MODEL)))
|
|
RAM_LEN = 1K
|
|
ROM_LEN = 8K
|
|
endif
|
|
ifneq (,$(findstring atxmega16,$(CPU_MODEL)))
|
|
RAM_LEN = 2K
|
|
ROM_LEN = 16K
|
|
endif
|
|
ifneq (,$(findstring atxmega32,$(CPU_MODEL)))
|
|
RAM_LEN = 4K
|
|
ROM_LEN = 32K
|
|
endif
|
|
ifneq (,$(findstring atxmega64,$(CPU_MODEL)))
|
|
RAM_LEN = 4K
|
|
ROM_LEN = 64K
|
|
endif
|
|
ifneq (,$(findstring atxmega128,$(CPU_MODEL)))
|
|
RAM_LEN = 8K
|
|
ROM_LEN = 128K
|
|
endif
|
|
ifneq (,$(findstring atxmega192,$(CPU_MODEL)))
|
|
RAM_LEN = 16K
|
|
ROM_LEN = 192K
|
|
endif
|
|
ifneq (,$(findstring atxmega256,$(CPU_MODEL)))
|
|
RAM_LEN = 16K
|
|
ROM_LEN = 256K
|
|
endif
|
|
ifneq (,$(findstring atxmega384,$(CPU_MODEL)))
|
|
RAM_LEN = 32K
|
|
ROM_LEN = 384K
|
|
endif
|
|
|
|
ifneq (,$(findstring a1,$(shell echo $(CPU_MODEL) | cut -c8-)))
|
|
ifeq ($(EXP_RAM),1)
|
|
CFLAGS += -DRAM_LEN=$(RAM_LEN)-1
|
|
LDSCRIPT_EXTRA = -Wl,--defsym=__heap_end=0x800000+$(RAM_LEN)-1
|
|
endif
|
|
endif
|
|
|
|
# CPU depends on the avr8 common module, so include it
|
|
include $(RIOTCPU)/avr8_common/Makefile.include
|
|
|
|
PSEUDOMODULE += atxmega_ebi
|