mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-14 04:18:56 +00:00
l0 use offical st driver repo
This commit is contained in:
parent
3659d8e89a
commit
ac231d7b2d
6
.gitmodules
vendored
6
.gitmodules
vendored
@ -73,3 +73,9 @@
|
||||
[submodule "hw/mcu/st/stm32h7xx_hal_driver"]
|
||||
path = hw/mcu/st/stm32h7xx_hal_driver
|
||||
url = https://github.com/STMicroelectronics/stm32h7xx_hal_driver.git
|
||||
[submodule "hw/mcu/st/cmsis_device_l0"]
|
||||
path = hw/mcu/st/cmsis_device_l0
|
||||
url = https://github.com/STMicroelectronics/cmsis_device_l0.git
|
||||
[submodule "hw/mcu/st/stm32l0xx_hal_driver"]
|
||||
path = hw/mcu/st/stm32l0xx_hal_driver
|
||||
url = https://github.com/STMicroelectronics/stm32l0xx_hal_driver.git
|
||||
|
@ -12,19 +12,20 @@ CFLAGS += \
|
||||
# mcu driver cause following warnings
|
||||
CFLAGS += -Wno-error=unused-parameter -Wno-error=maybe-uninitialized
|
||||
|
||||
ST_HAL_DRIVER = hw/mcu/st/st_driver/STM32L0xx_HAL_Driver
|
||||
ST_CMSIS = hw/mcu/st/st_driver/CMSIS/Device/ST/STM32L0xx
|
||||
ST_FAMILY = l0
|
||||
ST_CMSIS = hw/mcu/st/cmsis_device_$(ST_FAMILY)
|
||||
ST_HAL_DRIVER = hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
# All source paths should be relative to the top level.
|
||||
LD_FILE = hw/bsp/$(BOARD)/STM32L053C8Tx_FLASH.ld
|
||||
|
||||
SRC_C += \
|
||||
$(ST_CMSIS)/Source/Templates/system_stm32l0xx.c \
|
||||
$(ST_HAL_DRIVER)/Src/stm32l0xx_hal.c \
|
||||
$(ST_HAL_DRIVER)/Src/stm32l0xx_hal_cortex.c \
|
||||
$(ST_HAL_DRIVER)/Src/stm32l0xx_hal_rcc.c \
|
||||
$(ST_HAL_DRIVER)/Src/stm32l0xx_hal_rcc_ex.c \
|
||||
$(ST_HAL_DRIVER)/Src/stm32l0xx_hal_gpio.c
|
||||
$(ST_CMSIS)/Source/Templates/system_stm32$(ST_FAMILY)xx.c \
|
||||
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal.c \
|
||||
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_cortex.c \
|
||||
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_rcc.c \
|
||||
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_rcc_ex.c \
|
||||
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_gpio.c
|
||||
|
||||
SRC_S += \
|
||||
$(ST_CMSIS)/Source/Templates/gcc/startup_stm32l053xx.s
|
||||
|
@ -127,7 +127,7 @@ void board_init(void)
|
||||
GPIO_InitStruct.Pin = LED_PIN;
|
||||
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||
GPIO_InitStruct.Pull = GPIO_PULLUP;
|
||||
GPIO_InitStruct.Speed = GPIO_SPEED_FAST;
|
||||
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
|
||||
HAL_GPIO_Init(LED_PORT, &GPIO_InitStruct);
|
||||
|
||||
board_led_write(false);
|
||||
@ -137,7 +137,7 @@ void board_init(void)
|
||||
GPIO_InitStruct.Pin = BUTTON_PIN;
|
||||
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
|
||||
GPIO_InitStruct.Pull = GPIO_PULLDOWN;
|
||||
GPIO_InitStruct.Speed = GPIO_SPEED_FAST;
|
||||
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
|
||||
HAL_GPIO_Init(BUTTON_PORT, &GPIO_InitStruct);
|
||||
|
||||
// USB
|
||||
|
1
hw/mcu/st/cmsis_device_l0
Submodule
1
hw/mcu/st/cmsis_device_l0
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 06748ca1f93827befdb8b794402320d94d02004f
|
1
hw/mcu/st/stm32l0xx_hal_driver
Submodule
1
hw/mcu/st/stm32l0xx_hal_driver
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit fbdacaf6f8c82a4e1eb9bd74ba650b491e97e17b
|
Loading…
x
Reference in New Issue
Block a user