fix build

Signed-off-by: HiFiPhile <admin@hifiphile.com>
This commit is contained in:
HiFiPhile
2025-11-27 22:45:31 +01:00
parent 7712205ba8
commit f3ac009adb
6 changed files with 16 additions and 1 deletions

View File

@ -16,6 +16,7 @@ mcu:MSP432E4
mcu:RP2040
mcu:RX65X
mcu:RAXXX
mcu:STM32C0
mcu:STM32F4
mcu:STM32F7
mcu:STM32H5

View File

@ -6,4 +6,7 @@ function(update_board TARGET)
STM32H503xx
HSE_VALUE=24000000
)
target_compile_definitions(${BOARD_TARGET} PUBLIC
CFG_EXAMPLE_VIDEO_READONLY
)
endfunction()

View File

@ -133,6 +133,11 @@ static inline void board_init2(void) {
// Empty for this board
}
void board_vbus_set(uint8_t rhport, bool state) {
(void) rhport;
(void) state;
}
#ifdef __cplusplus
}
#endif

View File

@ -3,6 +3,7 @@ MCU_VARIANT = stm32h503xx
CFLAGS += \
-DSTM32H503xx \
-DHSE_VALUE=24000000 \
-DCFG_EXAMPLE_VIDEO_READONLY \
# For flash-jlink target
JLINK_DEVICE = stm32h503rb

View File

@ -141,6 +141,11 @@ static inline void board_init2(void) {
// Empty for this board
}
void board_vbus_set(uint8_t rhport, bool state) {
(void) rhport;
(void) state;
}
#ifdef __cplusplus
}
#endif

View File

@ -141,7 +141,7 @@ deps_optional = {
'stm32h7'],
'hw/mcu/st/stm32-tcpp0203': ['https://github.com/STMicroelectronics/stm32-tcpp0203.git',
'9918655bff176ac3046ccf378b5c7bbbc6a38d15',
'stm32h7rs stm32n6'],
'stm32h5 stm32h7rs stm32n6'],
'hw/mcu/st/stm32c0xx_hal_driver': ['https://github.com/STMicroelectronics/stm32c0xx_hal_driver.git',
'c283b143bef6bdaacf64240ee6f15eb61dad6125',
'stm32c0'],