sam3x8e: Use SAM3X CMSIS files instead of arduino CMSIS files
Update the sam3x8e port use the most recent SAM3X CMSIS files from Atmel. The Atmel files appear to have a more consistent license and it is unclear if there were Arduino specific changes in the CMSIS files obtained from the Arduino repo. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
8572cae9a0
commit
e1146c04fd
|
@ -4,22 +4,22 @@
|
|||
CROSS_PREFIX=arm-none-eabi-
|
||||
|
||||
dirs-y += src/sam3x8e src/generic
|
||||
dirs-y += lib/cmsis-sam3x8e/source lib/cmsis-sam3x8e/source/gcc
|
||||
dirs-y += lib/sam3x/gcc/gcc
|
||||
|
||||
CFLAGS += -mthumb -mcpu=cortex-m3
|
||||
CFLAGS += -Ilib/cmsis-sam3x8e/include -Ilib/cmsis-sam3x8e/cmsis-include
|
||||
CFLAGS += -Ilib/sam3x/include -Ilib/cmsis-core
|
||||
CFLAGS += -D__SAM3X8E__
|
||||
|
||||
CFLAGS_klipper.elf += -Llib/cmsis-sam3x8e/source/gcc
|
||||
CFLAGS_klipper.elf += -T lib/cmsis-sam3x8e/source/gcc/sam3x8e_flash.ld
|
||||
CFLAGS_klipper.elf += -Llib/sam3x/gcc/gcc
|
||||
CFLAGS_klipper.elf += -T lib/sam3x/gcc/gcc/sam3x8e_flash.ld
|
||||
CFLAGS_klipper.elf += --specs=nano.specs --specs=nosys.specs
|
||||
|
||||
# Add source files
|
||||
src-y += sam3x8e/main.c sam3x8e/timer.c sam3x8e/gpio.c sam3x8e/spi.c
|
||||
src-y += generic/crc16_ccitt.c generic/alloc.c
|
||||
src-y += generic/armcm_irq.c generic/timer_irq.c
|
||||
src-y += ../lib/cmsis-sam3x8e/source/system_sam3xa.c
|
||||
src-y += ../lib/cmsis-sam3x8e/source/gcc/startup_sam3xa.c
|
||||
src-y += ../lib/sam3x/gcc/system_sam3xa.c
|
||||
src-y += ../lib/sam3x/gcc/gcc/startup_sam3xa.c
|
||||
src-$(CONFIG_SERIAL) += sam3x8e/serial.c generic/serial_irq.c
|
||||
|
||||
# Build the additional hex output file
|
||||
|
|
Loading…
Reference in New Issue