From 6e7f2064cf8d5feaca9a59ce0593198a3fc29d12 Mon Sep 17 00:00:00 2001 From: hathach Date: Fri, 30 Oct 2020 14:04:46 +0700 Subject: [PATCH] add more stm mcu --- .gitmodules | 18 ++++++++++++++++++ hw/bsp/stm32l476disco/board.mk | 2 +- hw/mcu/st/cmsis_device_g0 | 1 + hw/mcu/st/cmsis_device_g4 | 1 + hw/mcu/st/cmsis_device_l5 | 1 + hw/mcu/st/stm32g0xx_hal_driver | 1 + hw/mcu/st/stm32g4xx_hal_driver | 1 + hw/mcu/st/stm32l5xx_hal_driver | 1 + 8 files changed, 25 insertions(+), 1 deletion(-) create mode 160000 hw/mcu/st/cmsis_device_g0 create mode 160000 hw/mcu/st/cmsis_device_g4 create mode 160000 hw/mcu/st/cmsis_device_l5 create mode 160000 hw/mcu/st/stm32g0xx_hal_driver create mode 160000 hw/mcu/st/stm32g4xx_hal_driver create mode 160000 hw/mcu/st/stm32l5xx_hal_driver diff --git a/.gitmodules b/.gitmodules index 93945928..81ba7f06 100644 --- a/.gitmodules +++ b/.gitmodules @@ -91,3 +91,21 @@ [submodule "hw/mcu/st/stm32l4xx_hal_driver"] path = hw/mcu/st/stm32l4xx_hal_driver url = https://github.com/STMicroelectronics/stm32l4xx_hal_driver.git +[submodule "hw/mcu/st/cmsis_device_g0"] + path = hw/mcu/st/cmsis_device_g0 + url = https://github.com/STMicroelectronics/cmsis_device_g0.git +[submodule "hw/mcu/st/stm32g0xx_hal_driver"] + path = hw/mcu/st/stm32g0xx_hal_driver + url = https://github.com/STMicroelectronics/stm32g0xx_hal_driver.git +[submodule "hw/mcu/st/cmsis_device_g4"] + path = hw/mcu/st/cmsis_device_g4 + url = https://github.com/STMicroelectronics/cmsis_device_g4.git +[submodule "hw/mcu/st/stm32g4xx_hal_driver"] + path = hw/mcu/st/stm32g4xx_hal_driver + url = https://github.com/STMicroelectronics/stm32g4xx_hal_driver.git +[submodule "hw/mcu/st/cmsis_device_l5"] + path = hw/mcu/st/cmsis_device_l5 + url = https://github.com/STMicroelectronics/cmsis_device_l5.git +[submodule "hw/mcu/st/stm32l5xx_hal_driver"] + path = hw/mcu/st/stm32l5xx_hal_driver + url = https://github.com/STMicroelectronics/stm32l5xx_hal_driver.git diff --git a/hw/bsp/stm32l476disco/board.mk b/hw/bsp/stm32l476disco/board.mk index e79feda0..fb55dbb5 100644 --- a/hw/bsp/stm32l476disco/board.mk +++ b/hw/bsp/stm32l476disco/board.mk @@ -10,7 +10,7 @@ CFLAGS += \ -DCFG_TUSB_MCU=OPT_MCU_STM32L4 # suppress warning caused by vendor mcu driver -CFLAGS += -Wno-error=maybe-uninitialized -Wno-error=cast-align +CFLAGS += -Wno-error=maybe-uninitialized -Wno-error=cast-align ST_FAMILY = l4 ST_CMSIS = hw/mcu/st/cmsis_device_$(ST_FAMILY) diff --git a/hw/mcu/st/cmsis_device_g0 b/hw/mcu/st/cmsis_device_g0 new file mode 160000 index 00000000..08258b28 --- /dev/null +++ b/hw/mcu/st/cmsis_device_g0 @@ -0,0 +1 @@ +Subproject commit 08258b28ee95f50cb9624d152a1cbf084be1f9a5 diff --git a/hw/mcu/st/cmsis_device_g4 b/hw/mcu/st/cmsis_device_g4 new file mode 160000 index 00000000..ce822adb --- /dev/null +++ b/hw/mcu/st/cmsis_device_g4 @@ -0,0 +1 @@ +Subproject commit ce822adb1dc552b3aedd13621edbc7fdae124878 diff --git a/hw/mcu/st/cmsis_device_l5 b/hw/mcu/st/cmsis_device_l5 new file mode 160000 index 00000000..d922865f --- /dev/null +++ b/hw/mcu/st/cmsis_device_l5 @@ -0,0 +1 @@ +Subproject commit d922865fc0326a102c26211c44b8e42f52c1e53d diff --git a/hw/mcu/st/stm32g0xx_hal_driver b/hw/mcu/st/stm32g0xx_hal_driver new file mode 160000 index 00000000..5b53e6ce --- /dev/null +++ b/hw/mcu/st/stm32g0xx_hal_driver @@ -0,0 +1 @@ +Subproject commit 5b53e6cee664a82b16c86491aa0060e2110c00cb diff --git a/hw/mcu/st/stm32g4xx_hal_driver b/hw/mcu/st/stm32g4xx_hal_driver new file mode 160000 index 00000000..8b451841 --- /dev/null +++ b/hw/mcu/st/stm32g4xx_hal_driver @@ -0,0 +1 @@ +Subproject commit 8b4518417706d42eef5c14e56a650005abf478a8 diff --git a/hw/mcu/st/stm32l5xx_hal_driver b/hw/mcu/st/stm32l5xx_hal_driver new file mode 160000 index 00000000..675c32a7 --- /dev/null +++ b/hw/mcu/st/stm32l5xx_hal_driver @@ -0,0 +1 @@ +Subproject commit 675c32a75df37f39d50d61f51cb0dcf53f07e1cb