-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #386 from adafruit/use-python-script-remove-submodule
Use python script to remove submodule for mcu driver
- Loading branch information
Showing
48 changed files
with
646 additions
and
548 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,6 @@ | ||
[submodule "lib/st/cmsis_device_f4"] | ||
path = lib/st/cmsis_device_f4 | ||
url = https://github.com/STMicroelectronics/cmsis_device_f4.git | ||
[submodule "lib/st/cmsis_device_l4"] | ||
path = lib/st/cmsis_device_l4 | ||
url = https://github.com/STMicroelectronics/cmsis_device_l4.git | ||
[submodule "lib/st/stm32f4xx_hal_driver"] | ||
path = lib/st/stm32f4xx_hal_driver | ||
url = https://github.com/STMicroelectronics/stm32f4xx_hal_driver.git | ||
[submodule "lib/st/stm32l4xx_hal_driver"] | ||
path = lib/st/stm32l4xx_hal_driver | ||
url = https://github.com/STMicroelectronics/stm32l4xx_hal_driver.git | ||
[submodule "lib/tinyusb"] | ||
path = lib/tinyusb | ||
url = https://github.com/hathach/tinyusb.git | ||
[submodule "lib/uf2"] | ||
path = lib/uf2 | ||
url = https://github.com/microsoft/uf2.git | ||
[submodule "lib/sct_neopixel"] | ||
path = lib/sct_neopixel | ||
url = https://github.com/gsteiert/sct_neopixel | ||
[submodule "lib/st/stm32f3xx_hal_driver"] | ||
path = lib/st/stm32f3xx_hal_driver | ||
url = https://github.com/STMicroelectronics/stm32f3xx_hal_driver | ||
[submodule "lib/st/cmsis_device_f3"] | ||
path = lib/st/cmsis_device_f3 | ||
url = https://github.com/STMicroelectronics/cmsis_device_f3.git | ||
[submodule "lib/nxp/mcux-sdk"] | ||
path = lib/nxp/mcux-sdk | ||
url = https://github.com/NXPmicro/mcux-sdk.git | ||
[submodule "lib/st/cmsis_device_h7"] | ||
path = lib/st/cmsis_device_h7 | ||
url = https://github.com/STMicroelectronics/cmsis_device_h7.git | ||
[submodule "lib/st/stm32h7xx_hal_driver"] | ||
path = lib/st/stm32h7xx_hal_driver | ||
url = https://github.com/STMicroelectronics/stm32h7xx_hal_driver.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule mcux-sdk
deleted from
9990f2
Submodule sct_neopixel
deleted from
497ca8
Submodule cmsis_device_f3
deleted from
167eef
Submodule cmsis_device_f4
deleted from
7ac690
Submodule cmsis_device_h7
deleted from
834d18
Submodule cmsis_device_l4
deleted from
a54685
Submodule stm32f3xx_hal_driver
deleted from
75cf4f
Submodule stm32f4xx_hal_driver
deleted from
1d9956
Submodule stm32h7xx_hal_driver
deleted from
3ba4eb
Submodule stm32l4xx_hal_driver
deleted from
ccde09
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,64 @@ | ||
# List of git submodules that is included as part of the UF2 version | ||
GIT_SUBMODULES = nxp/mcux-sdk tinyusb | ||
|
||
include ../make.mk | ||
|
||
# inline port details | ||
UF2_FAMILY_ID = 0x7f83e793 | ||
CROSS_COMPILE = arm-none-eabi- | ||
|
||
SDK_DIR = lib/nxp/mcux-sdk | ||
MCU_DIR = $(SDK_DIR)/devices/$(MCU) | ||
|
||
# Port Compiler Flags | ||
CFLAGS += \ | ||
-flto \ | ||
-mthumb \ | ||
-mabi=aapcs \ | ||
-mcpu=cortex-m0plus | ||
|
||
# suppress warning caused by vendor mcu driver | ||
CFLAGS += -Wno-error=cast-align -Wno-error=unused-parameter | ||
|
||
# Port source | ||
SRC_C += \ | ||
$(MCU_DIR)/system_$(MCU).c \ | ||
$(MCU_DIR)/drivers/fsl_clock.c \ | ||
$(SDK_DIR)/drivers/gpio/fsl_gpio.c \ | ||
$(SDK_DIR)/drivers/flash/fsl_ftfx_controller.c \ | ||
$(SDK_DIR)/drivers/flash/fsl_ftfx_flash.c \ | ||
$(SDK_DIR)/drivers/flash/fsl_ftfx_cache.c \ | ||
$(SDK_DIR)/drivers/flash/fsl_ftfx_flexnvm.c \ | ||
$(SDK_DIR)/drivers/lpuart/fsl_lpuart.c \ | ||
$(PORT_DIR)/clock_config.c \ | ||
$(PORT_DIR)/boards.c \ | ||
$(PORT_DIR)/board_flash.c | ||
|
||
ifndef BUILD_NO_TINYUSB | ||
SRC_C += lib/tinyusb/src/portable/nxp/khci/dcd_khci.c | ||
endif | ||
|
||
SRC_S += $(MCU_DIR)/gcc/startup_$(MCU).S | ||
|
||
# Port include | ||
INC += \ | ||
$(TOP)/$(PORT_DIR) \ | ||
$(TOP)/$(BOARD_DIR) \ | ||
$(TOP)/$(SDK_DIR)/CMSIS/Include \ | ||
$(TOP)/$(MCU_DIR) \ | ||
$(TOP)/$(MCU_DIR)/drivers \ | ||
$(TOP)/$(SDK_DIR)/drivers/smc \ | ||
$(TOP)/$(SDK_DIR)/drivers/rtc \ | ||
$(TOP)/$(SDK_DIR)/drivers/common \ | ||
$(TOP)/$(SDK_DIR)/drivers/gpio \ | ||
$(TOP)/$(SDK_DIR)/drivers/port \ | ||
$(TOP)/$(SDK_DIR)/drivers/lpuart \ | ||
$(TOP)/$(SDK_DIR)/drivers/flash | ||
|
||
LD_FILES ?= $(MCU_DIR)/gcc/$(LD_FNAME) | ||
|
||
include ../rules.mk | ||
|
||
#-------------- Self-update -------------- | ||
self-update: | ||
@echo "not implemented yet" | ||
# List of git submodules that is included as part of the UF2 version | ||
GIT_SUBMODULES = nxp/mcux-sdk tinyusb | ||
|
||
include ../make.mk | ||
|
||
# inline port details | ||
UF2_FAMILY_ID = 0x7f83e793 | ||
CROSS_COMPILE = arm-none-eabi- | ||
|
||
SDK_DIR = lib/mcu/nxp/mcux-sdk | ||
MCU_DIR = $(SDK_DIR)/devices/$(MCU) | ||
|
||
# Port Compiler Flags | ||
CFLAGS += \ | ||
-flto \ | ||
-mthumb \ | ||
-mabi=aapcs \ | ||
-mcpu=cortex-m0plus | ||
|
||
# suppress warning caused by vendor mcu driver | ||
CFLAGS += -Wno-error=cast-align -Wno-error=unused-parameter | ||
|
||
# Port source | ||
SRC_C += \ | ||
$(MCU_DIR)/system_$(MCU).c \ | ||
$(MCU_DIR)/drivers/fsl_clock.c \ | ||
$(SDK_DIR)/drivers/gpio/fsl_gpio.c \ | ||
$(SDK_DIR)/drivers/flash/fsl_ftfx_controller.c \ | ||
$(SDK_DIR)/drivers/flash/fsl_ftfx_flash.c \ | ||
$(SDK_DIR)/drivers/flash/fsl_ftfx_cache.c \ | ||
$(SDK_DIR)/drivers/flash/fsl_ftfx_flexnvm.c \ | ||
$(SDK_DIR)/drivers/lpuart/fsl_lpuart.c \ | ||
$(PORT_DIR)/clock_config.c \ | ||
$(PORT_DIR)/boards.c \ | ||
$(PORT_DIR)/board_flash.c | ||
|
||
ifndef BUILD_NO_TINYUSB | ||
SRC_C += lib/tinyusb/src/portable/nxp/khci/dcd_khci.c | ||
endif | ||
|
||
SRC_S += $(MCU_DIR)/gcc/startup_$(MCU).S | ||
|
||
# Port include | ||
INC += \ | ||
$(TOP)/$(PORT_DIR) \ | ||
$(TOP)/$(BOARD_DIR) \ | ||
$(TOP)/$(SDK_DIR)/CMSIS/Include \ | ||
$(TOP)/$(MCU_DIR) \ | ||
$(TOP)/$(MCU_DIR)/drivers \ | ||
$(TOP)/$(SDK_DIR)/drivers/smc \ | ||
$(TOP)/$(SDK_DIR)/drivers/rtc \ | ||
$(TOP)/$(SDK_DIR)/drivers/common \ | ||
$(TOP)/$(SDK_DIR)/drivers/gpio \ | ||
$(TOP)/$(SDK_DIR)/drivers/port \ | ||
$(TOP)/$(SDK_DIR)/drivers/lpuart \ | ||
$(TOP)/$(SDK_DIR)/drivers/flash | ||
|
||
LD_FILES ?= $(MCU_DIR)/gcc/$(LD_FNAME) | ||
|
||
include ../rules.mk | ||
|
||
#-------------- Self-update -------------- | ||
self-update: | ||
@echo "not implemented yet" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
36 changes: 18 additions & 18 deletions
36
ports/k32l2/boards/frdm-k32l2b/board.mk → ...kinetis_k32l2/boards/frdm-k32l2b/board.mk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
MCU = K32L2B31A | ||
|
||
CFLAGS += \ | ||
-DCPU_K32L2B31VLH0A \ | ||
-DCFG_TUSB_MCU=OPT_MCU_K32L2BXX | ||
|
||
SRC_S += | ||
|
||
LD_FNAME = K32L2B31xxxxA_flash.ld | ||
|
||
DBL_TAP_REG_ADDR = 0x4003D008 | ||
|
||
# For flash-pyocd target | ||
PYOCD_TARGET = K32L2B3 | ||
|
||
# flash using pyocd | ||
flash: flash-pyocd | ||
erase: erase-jlink | ||
MCU = K32L2B31A | ||
|
||
CFLAGS += \ | ||
-DCPU_K32L2B31VLH0A \ | ||
-DCFG_TUSB_MCU=OPT_MCU_K32L2BXX | ||
|
||
SRC_S += | ||
|
||
LD_FNAME = K32L2B31xxxxA_flash.ld | ||
|
||
DBL_TAP_REG_ADDR = 0x4003D008 | ||
|
||
# For flash-pyocd target | ||
PYOCD_TARGET = K32L2B3 | ||
|
||
# flash using pyocd | ||
flash: flash-pyocd | ||
erase: erase-jlink |
File renamed without changes.
Oops, something went wrong.