From b09921af2e6a17a399d05dba41cbc32c7bf6bbf3 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 3 Nov 2020 21:19:19 +0100 Subject: [PATCH] msp432p401lp-cc256x: add missing lib and cc256x lib to download init script --- port/msp432p401lp-cc256x/.gitignore | 1 + .../driverlib/MSP432P4xx/gcc/Makefile | 47 +++++++++++++++++++ port/msp432p401lp-cc256x/Makefile | 4 +- 3 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 port/msp432p401lp-cc256x/.gitignore create mode 100644 port/msp432p401lp-cc256x/MSP432_DriverLib_3_10_00_09/driverlib/MSP432P4xx/gcc/Makefile diff --git a/port/msp432p401lp-cc256x/.gitignore b/port/msp432p401lp-cc256x/.gitignore new file mode 100644 index 000000000..90584dda5 --- /dev/null +++ b/port/msp432p401lp-cc256x/.gitignore @@ -0,0 +1 @@ +gcc diff --git a/port/msp432p401lp-cc256x/MSP432_DriverLib_3_10_00_09/driverlib/MSP432P4xx/gcc/Makefile b/port/msp432p401lp-cc256x/MSP432_DriverLib_3_10_00_09/driverlib/MSP432P4xx/gcc/Makefile new file mode 100644 index 000000000..db19ab900 --- /dev/null +++ b/port/msp432p401lp-cc256x/MSP432_DriverLib_3_10_00_09/driverlib/MSP432P4xx/gcc/Makefile @@ -0,0 +1,47 @@ +SDK_ROOT_INCLUDE = ../../../../../../ +include $(SDK_ROOT_INCLUDE)/imports.mak + +CC = $(GCC_ARMCOMPILER)/bin/arm-none-eabi-gcc +AR = $(GCC_ARMCOMPILER)/bin/arm-none-eabi-ar + +MSP432LIB = msp432p4xx_driverlib.a +ARFLAGS=$(MSP432LIB) +CFLAGS=-mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mcpu=cortex-m4 -O4 -ffunction-sections -fdata-sections -MD -std=c99 -c + +CFLAGS+=-I$(SDK_ROOT_INCLUDE)/source/ +CFLAGS+=-I$(SDK_ROOT_INCLUDE)/source/third_party/CMSIS/Include/ +CFLAGS+=-I$(SDK_ROOT_INCLUDE)/source/ti/devices/msp432p4xx/inc/ +CFLAGS+=-I$(GCC_ARMCOMPILER)/arm-none-eabi/include/ +CFLAGS_401=$(CFLAGS) -D__MSP432P401R__ +CFLAGS_4111=$(CFLAGS) -D__MSP432P4111__ + +OBJ = ../adc14.o ../aes256.o ../comp_e.o ../cpu.o ../crc32.o ../cs.o ../dma.o ../fpu.o \ +../gpio.o ../i2c.o ../interrupt.o ../mpu.o ../pmap.o ../pcm.o ../pss.o ../ref_a.o ../reset.o ../rtc_c.o \ +../spi.o ../systick.o ../timer_a.o ../timer32.o ../uart.o ../wdt_a.o +OBJ_401 = ../flash.o ../sysctl.o +OBJ_4111 = $(OBJ) ../flash_a.o ../sysctl_a.o ../lcd_f.o + +LINKOBJS = adc14.o aes256.o comp_e.o cpu.o crc32.o cs.o dma.o fpu.o gpio.o \ +i2c.o interrupt.o mpu.o pmap.o pcm.o pss.o ref_a.o reset.o rtc_c.o flash.o \ +sysctl.o sysctl_a.o flash_a.o lcd_f.o + +.PHONY: all +all: $(MSP432LIB) + +$(OBJ_401): %.o: %.c + @echo " CC ${<}" + @${CC} ${CFLAGS_401} $< + +$(OBJ_4111): %.o: %.c + @echo " CC ${<}" + @${CC} ${CFLAGS_4111} ${<} + +$(MSP432LIB): $(OBJ_401) $(OBJ_4111) + @echo " AR $(MSP432LIB)" + @$(AR) rs $(MSP432LIB) $(LINKOBJS) > /dev/null + +.PHONY: clean +clean: + @rm -f *.o + @rm -f *.d + @rm -f $(MSP432LIB) \ No newline at end of file diff --git a/port/msp432p401lp-cc256x/Makefile b/port/msp432p401lp-cc256x/Makefile index 24f62d49c..ecacdf689 100755 --- a/port/msp432p401lp-cc256x/Makefile +++ b/port/msp432p401lp-cc256x/Makefile @@ -120,7 +120,7 @@ uECC.c \ PORT_SOURCES = \ btstack_chipset_cc256x.o \ - bluetooth_init_cc2564B_1.6_BT_Spec_4.1.o \ + bluetooth_init_cc2564B_1.6_BT_Spec_4.1.o \ hal_flash_bank_msp432.o \ main.o \ startup_msp432p401r_${COMPILER}.o \ @@ -191,6 +191,8 @@ all: \ $(addprefix $(COMPILER)/,$(GATT_FILES:.gatt=.h)) \ $(addprefix $(COMPILER)/,$(EXAMPLES:=.elf)) \ +include $(BTSTACK_ROOT)/chipset/cc256x/Makefile.inc + # # The rule to clean out all the build products. #