mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-30 15:30:30 +00:00
msp430x: do not compile mtarch, which currently assumes 16-bit function pointers
This commit is contained in:
parent
e5d5cf7018
commit
560d6af97b
@ -35,10 +35,17 @@ endif
|
||||
CONTIKI_CPU_DIRS = $(CONTIKI_CPU_FAM_DIR) . dev
|
||||
|
||||
MSP430 = msp430.c flash.c clock.c leds.c leds-arch.c \
|
||||
watchdog.c lpm.c mtarch.c rtimer-arch.c
|
||||
watchdog.c lpm.c rtimer-arch.c
|
||||
UIPDRIVERS = me.c me_tabs.c slip.c crc16.c
|
||||
ELFLOADER = elfloader.c elfloader-msp430.c symtab.c
|
||||
|
||||
ifndef CPU_HAS_MSP430X
|
||||
# include mtarch.c only in the non-large memory model case, because
|
||||
# the current implementation assumes 16-bit addresses (function pointers
|
||||
# stored as "unsigned short").
|
||||
MSP430 += mtarch.c
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET_MEMORY_MODEL),large)
|
||||
ELFLOADER = elfloader-msp430x.c symtab.c
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user