summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2023-04-14 17:54:25 +0200
committerHiFiPhile <[email protected]>2023-04-14 21:00:55 +0200
commit2f2c8ce9ec4a567603cbd5e0420fc3dcaffbdfb6 (patch)
tree0ea5a79cc578d49d40a5a4112406e8858b189612 /hw
parent71d2ccd78f643886237944729f4bd03876dd108f (diff)
Fix GCC build.
Diffstat (limited to 'hw')
-rw-r--r--hw/bsp/board_mcu.h3
-rw-r--r--hw/bsp/stm32g0/family.mk2
2 files changed, 4 insertions, 1 deletions
diff --git a/hw/bsp/board_mcu.h b/hw/bsp/board_mcu.h
index cd195a19b..6d40aa0d1 100644
--- a/hw/bsp/board_mcu.h
+++ b/hw/bsp/board_mcu.h
@@ -101,6 +101,9 @@
#elif CFG_TUSB_MCU == OPT_MCU_STM32U5
#include "stm32u5xx.h"
+#elif CFG_TUSB_MCU == OPT_MCU_STM32G0
+ #include "stm32g0xx.h"
+
#elif CFG_TUSB_MCU == OPT_MCU_CXD56
// no header needed
diff --git a/hw/bsp/stm32g0/family.mk b/hw/bsp/stm32g0/family.mk
index faf92dca9..76f59fc34 100644
--- a/hw/bsp/stm32g0/family.mk
+++ b/hw/bsp/stm32g0/family.mk
@@ -51,7 +51,7 @@ INC += \
$(TOP)/$(ST_HAL_DRIVER)/Inc
# For freeRTOS port source
-FREERTOS_PORT = ARM_CM0
+FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM0
# flash target using on-board stlink
flash: flash-stlink