Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Messing around with H7A3 #10661

Draft
wants to merge 62 commits into
base: maintenance-8.x.x
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
977a409
Try to update system32h7xx file.
mmosca Jan 30, 2025
8a10a90
WIP.
mmosca Jan 30, 2025
5fcfb19
almost linking
mmosca Jan 30, 2025
e3780df
Builds and links
mmosca Jan 30, 2025
0d19de5
missing linking script
mmosca Jan 30, 2025
219caef
Fix config streamer for STM32H7A3
mmosca Jan 31, 2025
2beb3fe
Fix H743 build
mmosca Jan 31, 2025
9d070a5
Remove SKIP_RELEASES for now, for testing.
mmosca Jan 31, 2025
bfbf362
split usbd_conf between h7 and h7a
mmosca Jan 31, 2025
50f9e46
Some VCP progress, still failing
mmosca Jan 31, 2025
6e22bff
Simplify target for boorstrapping
mmosca Feb 2, 2025
77119a2
Preparing to undo a bunch of changes
mmosca Feb 2, 2025
2f73af0
Add UART9 and UART10
mmosca Feb 2, 2025
4f54f7b
fix typo
mmosca Feb 2, 2025
49de442
more uart9/10 bits
mmosca Feb 2, 2025
521a3ee
More ports
mmosca Feb 2, 2025
b96d50f
Restore to v1.12.1
mmosca Feb 2, 2025
7f70afe
Restore to v1.12.1
mmosca Feb 2, 2025
34163d8
Documment version
mmosca Feb 2, 2025
2d8f61f
Fix warnings from v1.12.1 libraries
mmosca Feb 2, 2025
b7af3ac
Use DEVICE_HS for h7a3
mmosca Feb 2, 2025
1ebcff9
Update usbd files to separate h7a3 code and update target to match de…
mmosca Feb 3, 2025
1968431
SDK warning fix
mmosca Feb 3, 2025
c361644
Small changes.
mmosca Feb 3, 2025
77b803e
Duplicate file src/main/startup/startup_stm32h7a3xx.s
mmosca Feb 4, 2025
fb715d6
Add msp to uart6 (bt)
mmosca Feb 4, 2025
6ba7fa2
Add flash config
mmosca Feb 4, 2025
ac77dc3
flash version
mmosca Feb 5, 2025
72a1d24
Memory protection settings
mmosca Feb 5, 2025
9f10a3c
revert some changes
mmosca Feb 5, 2025
137d5eb
WIP before starting over.
mmosca Feb 5, 2025
b9a3a84
last file
mmosca Feb 5, 2025
7c405d5
permissions
mmosca Feb 6, 2025
6237308
Adding new hal file
mmosca Feb 6, 2025
2b9c3cb
Update stm32h7xx_hal_conf.h
mmosca Feb 6, 2025
d986f1f
Merge branch 'mmosca-h7a3-8.x.x' of github.com:iNavFlight/inav into m…
mmosca Feb 6, 2025
bbd1a36
Update system_stm32f7xx.h
mmosca Feb 6, 2025
37bc6f5
Make sure to use matching CMSIS files
mmosca Feb 7, 2025
f2c7384
Merge branch 'mmosca-h7a3-8.x.x' of github.com:iNavFlight/inav into m…
mmosca Feb 7, 2025
26e032a
Separate stm32h7a3 usb configuration around to prevent cross
mmosca Feb 7, 2025
308c8ca
More usb updates from restoring h743 code and moving things around
mmosca Feb 7, 2025
8f07a1c
at32 fixes
mmosca Feb 7, 2025
692158e
Missing commit
mmosca Feb 7, 2025
01d8609
Another missed file
mmosca Feb 7, 2025
b8d73b7
Change flash layout to fit debug builds
mmosca Feb 7, 2025
cf380ed
rename to match cube ide names
mmosca Feb 7, 2025
18c7b35
Match STM32CubeIde project better
mmosca Feb 7, 2025
d4f82d1
Some place holders before the cleanup
mmosca Feb 7, 2025
df42845
small change
mmosca Feb 7, 2025
46449fd
Build fixes
mmosca Feb 7, 2025
65cef09
Warning fix.
mmosca Feb 7, 2025
eb80232
Simplify flash layout
mmosca Feb 7, 2025
2585d01
Small target changes
mmosca Feb 8, 2025
fed0830
Merge branch 'mmosca-h7a3-8.x.x' of github.com:iNavFlight/inav into m…
mmosca Feb 8, 2025
128f7d7
Update linker scripts.
mmosca Feb 8, 2025
f446f63
re-add pg_registry
mmosca Feb 8, 2025
4617a8d
Add missing regions
mmosca Feb 8, 2025
577938d
Merge AHB_SRAM1 and AHB_SRAM2 regions
mmosca Feb 8, 2025
212ebbd
One step forward, 2 steps back.
mmosca Feb 10, 2025
1b4f72c
Missing ;
mmosca Feb 10, 2025
15e2efe
Commiting to start over
mmosca Feb 10, 2025
4c2f222
Commiting to start over
mmosca Feb 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ cov-int*
/ninja/
/obj/
/patches/
/test/
/tools/
/downloads/
/debug/
Expand Down
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"rth_trackback.h": "c",
"platform.h": "c",
"timer.h": "c",
"bus.h": "c"
"bus.h": "c",
"system.h": "c",
"system_stm32h7xx.h": "c"
},
"editor.tabSize": 4,
"editor.insertSpaces": true,
Expand Down
23 changes: 17 additions & 6 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,35 @@
"type": "shell",
"command": "make AOCODARCH7DUAL",
"group": {
"kind": "build",
"isDefault": true
"kind": "build"
},
"problemMatcher": [],
"options": {
"cwd": "${workspaceFolder}/build"
}
}
,
},
{
"label": "CMAKE Update",
"type": "shell",
"command": "cmake ..",
"command": "cmake -DWARNINGS_AS_ERRORS=ON ..",
"group": "build",
"problemMatcher": [],
"options": {
"cwd": "${workspaceFolder}/build"
}
},
{
"label": "Build TESTH7A3",
"type": "shell",
"command": "make TESTH7A3",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [],
"options": {
"cwd": "${workspaceFolder}/build"
}
}
]
}
}
2 changes: 1 addition & 1 deletion cmake/at32.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ option(SEMIHOSTING "Enable semihosting")

message("-- DEBUG_HARDFAULTS: ${DEBUG_HARDFAULTS}, SEMIHOSTING: ${SEMIHOSTING}")

set(CMSIS_DIR "${MAIN_LIB_DIR}/lib/main/AT32F43x/Drivers/CMSIS")
set(CMSIS_DIR "${MAIN_LIB_DIR}/main/AT32F43x/Drivers/CMSIS")
set(CMSIS_INCLUDE_DIR "${CMSIS_DIR}/cm4/core_support")
# DSP use common
set(CMSIS_DSP_DIR "${MAIN_LIB_DIR}/main/CMSIS/DSP")
Expand Down
33 changes: 5 additions & 28 deletions cmake/stm32.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ include(stm32-bootloader)
include(stm32f4)
include(stm32f7)
include(stm32h7)
include(stm32h7a)

include(CMakeParseArguments)

Expand All @@ -10,34 +11,10 @@ option(SEMIHOSTING "Enable semihosting")

message("-- DEBUG_HARDFAULTS: ${DEBUG_HARDFAULTS}, SEMIHOSTING: ${SEMIHOSTING}")

set(CMSIS_DIR "${MAIN_LIB_DIR}/main/CMSIS")
set(CMSIS_INCLUDE_DIR "${CMSIS_DIR}/Core/Include")
set(CMSIS_DSP_DIR "${MAIN_LIB_DIR}/main/CMSIS/DSP")
set(CMSIS_DSP_INCLUDE_DIR "${CMSIS_DSP_DIR}/Include")

set(CMSIS_DSP_SRC
BasicMathFunctions/arm_scale_f32.c
BasicMathFunctions/arm_sub_f32.c
BasicMathFunctions/arm_mult_f32.c
BasicMathFunctions/arm_offset_f32.c
TransformFunctions/arm_rfft_fast_f32.c
TransformFunctions/arm_cfft_f32.c
TransformFunctions/arm_rfft_fast_init_f32.c
TransformFunctions/arm_cfft_radix8_f32.c
TransformFunctions/arm_bitreversal2.S
CommonTables/arm_common_tables.c
ComplexMathFunctions/arm_cmplx_mag_f32.c
StatisticsFunctions/arm_max_f32.c
StatisticsFunctions/arm_rms_f32.c
StatisticsFunctions/arm_std_f32.c
StatisticsFunctions/arm_mean_f32.c
)
list(TRANSFORM CMSIS_DSP_SRC PREPEND "${CMSIS_DSP_DIR}/Source/")

set(STM32_STARTUP_DIR "${MAIN_SRC_DIR}/startup")

main_sources(STM32_VCP_SRC
drivers/serial_usb_vcp.c
#drivers/serial_usb_vcp.c
drivers/usb_io.c
)

Expand Down Expand Up @@ -69,8 +46,8 @@ main_sources(STM32_MSC_SDCARD_SRC
)

set(STM32_INCLUDE_DIRS
"${CMSIS_INCLUDE_DIR}"
"${CMSIS_DSP_INCLUDE_DIR}"
#"${CMSIS_INCLUDE_DIR}"
#"${CMSIS_DSP_INCLUDE_DIR}"
"${MAIN_SRC_DIR}/target"
)

Expand Down Expand Up @@ -359,7 +336,7 @@ function(target_stm32)
add_stm32_executable(
NAME ${name}
FILENAME ${binary_name}
SOURCES ${target_sources} ${msc_sources} ${CMSIS_DSP_SRC} ${COMMON_SRC}
SOURCES ${target_sources} ${msc_sources} ${COMMON_SRC}
COMPILE_DEFINITIONS ${target_definitions}
COMPILE_OPTIONS ${args_COMPILE_OPTIONS}
INCLUDE_DIRECTORIES ${target_include_directories}
Expand Down
30 changes: 28 additions & 2 deletions cmake/stm32f4.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ set(STM32F4_CMSIS_DEVICE_DIR "${MAIN_LIB_DIR}/main/STM32F4/Drivers/CMSIS/Device/
set(STM32F4_CMSIS_DRIVERS_DIR "${MAIN_LIB_DIR}/main/STM32F4/Drivers/CMSIS")
set(STM32F4_VCP_DIR "${MAIN_SRC_DIR}/vcpf4")

set(STM32F4_CMSIS_DIR "${MAIN_LIB_DIR}/main/CMSIS")
set(STM32F4_CMSIS_INCLUDE_DIR "${STM32F4_CMSIS_DIR}/Core/Include")

set(STM32F4_STDPERIPH_SRC_EXCLUDES
stm32f4xx_can.c
stm32f4xx_cec.c
Expand All @@ -29,6 +32,29 @@ set(STM32F4_STDPERIPH_SRC_EXCLUDES
stm32f4xx_spdifrx.c
)

set(CMSIS_DSP_DIR "${MAIN_LIB_DIR}/main/CMSIS/DSP")
set(CMSIS_DSP_INCLUDE_DIR "${CMSIS_DSP_DIR}/Include")

set(CMSIS_DSP_SRC
BasicMathFunctions/arm_scale_f32.c
BasicMathFunctions/arm_sub_f32.c
BasicMathFunctions/arm_mult_f32.c
BasicMathFunctions/arm_offset_f32.c
TransformFunctions/arm_rfft_fast_f32.c
TransformFunctions/arm_cfft_f32.c
TransformFunctions/arm_rfft_fast_init_f32.c
TransformFunctions/arm_cfft_radix8_f32.c
TransformFunctions/arm_bitreversal2.S
CommonTables/arm_common_tables.c
ComplexMathFunctions/arm_cmplx_mag_f32.c
StatisticsFunctions/arm_max_f32.c
StatisticsFunctions/arm_rms_f32.c
StatisticsFunctions/arm_std_f32.c
StatisticsFunctions/arm_mean_f32.c
)

list(TRANSFORM CMSIS_DSP_SRC PREPEND "${CMSIS_DSP_DIR}/Source/")

set(STM32F4_STDPERIPH_SRC_DIR "${STM32F4_STDPERIPH_DIR}/src")
glob_except(STM32F4_STDPERIPH_SRC "${STM32F4_STDPERIPH_SRC_DIR}/*.c" "${STM32F4_STDPERIPH_SRC_EXCLUDES}")

Expand Down Expand Up @@ -82,10 +108,10 @@ set(STM32F4_DEFINITIONS

function(target_stm32f4xx)
target_stm32(
SOURCES ${STM32_STDPERIPH_SRC} ${STM32F4_SRC}
SOURCES ${STM32_STDPERIPH_SRC} ${STM32F4_SRC} ${CMSIS_DSP_SRC}
COMPILE_DEFINITIONS ${STM32F4_DEFINITIONS}
COMPILE_OPTIONS ${CORTEX_M4F_COMMON_OPTIONS} ${CORTEX_M4F_COMPILE_OPTIONS}
INCLUDE_DIRECTORIES ${STM32F4_INCLUDE_DIRS}
INCLUDE_DIRECTORIES ${STM32F4_INCLUDE_DIRS} ${CMSIS_DSP_INCLUDE_DIR} ${STM32F4_CMSIS_INCLUDE_DIR}
LINK_OPTIONS ${CORTEX_M4F_COMMON_OPTIONS} ${CORTEX_M4F_LINK_OPTIONS}

MSC_SOURCES ${STM32F4_USBMSC_SRC} ${STM32F4_MSC_SRC}
Expand Down
30 changes: 28 additions & 2 deletions cmake/stm32f7.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ include(cortex-m7)
include(stm32f7-usb)

set(STM32F7_HAL_DIR "${MAIN_LIB_DIR}/main/STM32F7/Drivers/STM32F7xx_HAL_Driver")
set(STM32F7_CMSIS_DIR "${MAIN_LIB_DIR}/main/CMSIS")
set(STM32F7_CMSIS_INCLUDE_DIR "${STM32F7_CMSIS_DIR}/Core/Include")

set(STM32F7_HAL_SRC
stm32f7xx_hal.c
Expand Down Expand Up @@ -43,6 +45,30 @@ set(STM32F7_HAL_SRC
)
list(TRANSFORM STM32F7_HAL_SRC PREPEND "${STM32F7_HAL_DIR}/Src/")


set(STM32F7_CMSIS_DSP_DIR "${MAIN_LIB_DIR}/main/CMSIS/DSP")
set(STM32F7_CMSIS_DSP_INCLUDE_DIR "${STM32F7_CMSIS_DSP_DIR}/Include")

set(STM32F7_CMSIS_DSP_SRC
BasicMathFunctions/arm_scale_f32.c
BasicMathFunctions/arm_sub_f32.c
BasicMathFunctions/arm_mult_f32.c
BasicMathFunctions/arm_offset_f32.c
TransformFunctions/arm_rfft_fast_f32.c
TransformFunctions/arm_cfft_f32.c
TransformFunctions/arm_rfft_fast_init_f32.c
TransformFunctions/arm_cfft_radix8_f32.c
TransformFunctions/arm_bitreversal2.S
CommonTables/arm_common_tables.c
ComplexMathFunctions/arm_cmplx_mag_f32.c
StatisticsFunctions/arm_max_f32.c
StatisticsFunctions/arm_rms_f32.c
StatisticsFunctions/arm_std_f32.c
StatisticsFunctions/arm_mean_f32.c
)

list(TRANSFORM STM32F7_CMSIS_DSP_SRC PREPEND "${STM32F7_CMSIS_DSP_DIR}/Source/")

set(STM32F7_CMSIS_DEVICE_DIR "${MAIN_LIB_DIR}/main/STM32F7/Drivers/CMSIS/Device/ST/STM32F7xx")

set(STM32F7_VCP_DIR "${MAIN_SRC_DIR}/vcp_hal")
Expand Down Expand Up @@ -91,10 +117,10 @@ set(STM32F7_DEFINITIONS

function(target_stm32f7xx)
target_stm32(
SOURCES ${STM32F7_HAL_SRC} ${STM32F7_SRC}
SOURCES ${STM32F7_HAL_SRC} ${STM32F7_SRC} ${STM32F7_CMSIS_DSP_SRC}
COMPILE_DEFINITIONS ${STM32F7_DEFINITIONS}
COMPILE_OPTIONS ${CORTEX_M7_COMMON_OPTIONS} ${CORTEX_M7_COMPILE_OPTIONS}
INCLUDE_DIRECTORIES ${STM32F7_INCLUDE_DIRS}
INCLUDE_DIRECTORIES ${STM32F7_INCLUDE_DIRS} ${STM32F7_CMSIS_DSP_INCLUDE_DIR} ${STM32F7_CMSIS_INCLUDE_DIR}
LINK_OPTIONS ${CORTEX_M7_COMMON_OPTIONS} ${CORTEX_M7_LINK_OPTIONS}

MSC_SOURCES ${STM32F7_USBMSC_SRC} ${STM32F7_MSC_SRC}
Expand Down
37 changes: 31 additions & 6 deletions cmake/stm32h7.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,30 @@ include(stm32h7-usb)

set(STM32H7_CMSIS_DEVICE_DIR "${MAIN_LIB_DIR}/main/STM32H7/Drivers/CMSIS/Device/ST/STM32H7xx")
set(STM32H7_HAL_DIR "${MAIN_LIB_DIR}/main/STM32H7/Drivers/STM32H7xx_HAL_Driver")
set(STM32H7_CMSIS_DIR "${MAIN_LIB_DIR}/main/STM32H7/Drivers/CMSIS")
set(STM32H7_CMSIS_INCLUDE_DIR "${STM32H7_CMSIS_DIR}/Core/Include")
set(STM32H7_CMSIS_DSP_DIR "${MAIN_LIB_DIR}/main/STM32H7/Drivers/CMSIS/DSP")
set(STM32H7_CMSIS_DSP_INCLUDE_DIR "${STM32H7_CMSIS_DSP_DIR}/Include")

set(STM32H7_CMSIS_DSP_SRC
BasicMathFunctions/arm_scale_f32.c
BasicMathFunctions/arm_sub_f32.c
BasicMathFunctions/arm_mult_f32.c
BasicMathFunctions/arm_offset_f32.c
TransformFunctions/arm_rfft_fast_f32.c
TransformFunctions/arm_cfft_f32.c
TransformFunctions/arm_rfft_fast_init_f32.c
TransformFunctions/arm_cfft_radix8_f32.c
TransformFunctions/arm_bitreversal2.S
CommonTables/arm_common_tables.c
ComplexMathFunctions/arm_cmplx_mag_f32.c
StatisticsFunctions/arm_max_f32.c
StatisticsFunctions/arm_rms_f32.c
StatisticsFunctions/arm_std_f32.c
StatisticsFunctions/arm_mean_f32.c
)

list(TRANSFORM STM32H7_CMSIS_DSP_SRC PREPEND "${STM32H7_CMSIS_DSP_DIR}/Source/")

set(STM32H7_HAL_SRC
stm32h7xx_hal.c
Expand Down Expand Up @@ -88,8 +112,8 @@ set(STM32H7_HAL_SRC
stm32h7xx_hal_tim_ex.c
stm32h7xx_hal_uart.c
stm32h7xx_hal_uart_ex.c
# stm32h7xx_hal_usart.c
# stm32h7xx_hal_usart_ex.c
stm32h7xx_hal_usart.c
stm32h7xx_hal_usart_ex.c
# stm32h7xx_hal_wwdg.c
# stm32h7xx_ll_adc.c
# stm32h7xx_ll_bdma.c
Expand All @@ -106,7 +130,7 @@ set(STM32H7_HAL_SRC
# stm32h7xx_ll_hrtim.c
stm32h7xx_ll_i2c.c
# stm32h7xx_ll_lptim.c
# stm32h7xx_ll_lpuart.c
stm32h7xx_ll_lpuart.c
# stm32h7xx_ll_mdma.c
# stm32h7xx_ll_opamp.c
# stm32h7xx_ll_pwr.c
Expand All @@ -117,7 +141,7 @@ set(STM32H7_HAL_SRC
stm32h7xx_ll_spi.c
# stm32h7xx_ll_swpmi.c
stm32h7xx_ll_tim.c
# stm32h7xx_ll_usart.c
stm32h7xx_ll_usart.c
stm32h7xx_ll_usb.c
# stm32h7xx_ll_utils.c
)
Expand All @@ -136,6 +160,8 @@ list(TRANSFORM STM32H7_VCP_SRC PREPEND "${STM32H7_VCP_DIR}/")
set(STM32H7_INCLUDE_DIRS
${STM32H7_HAL_DIR}/Inc
${STM32H7_CMSIS_DEVICE_DIR}/Include
${STM32H7_CMSIS_INCLUDE_DIR}
${STM32H7_CMSIS_DSP_INCLUDE_DIR}
)

main_sources(STM32H7_SRC
Expand Down Expand Up @@ -177,7 +203,7 @@ set(STM32H7_DEFINITIONS

function(target_stm32h7xx)
target_stm32(
SOURCES ${STM32H7_HAL_SRC} ${STM32H7_SRC}
SOURCES ${STM32H7_HAL_SRC} ${STM32H7_SRC} ${STM32H7_CMSIS_DSP_SRC}
COMPILE_DEFINITIONS ${STM32H7_DEFINITIONS}
COMPILE_OPTIONS ${CORTEX_M7_COMMON_OPTIONS} ${CORTEX_M7_COMPILE_OPTIONS}
INCLUDE_DIRECTORIES ${STM32H7_INCLUDE_DIRS}
Expand Down Expand Up @@ -222,4 +248,3 @@ macro(define_target_stm32h7 subfamily size)
endmacro()

define_target_stm32h7(43 i)
define_target_stm32h7(A3 i)
41 changes: 41 additions & 0 deletions cmake/stm32h7a-usb.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
set(STM32H7A_USBCORE_DIR "${MAIN_LIB_DIR}/main/STM32H7/Middlewares/ST/STM32_USB_Device_Library/Core")
set(STM32H7A_USBCORE_SRC
usbd_core.c
usbd_ctlreq.c
usbd_ioreq.c
)
list(TRANSFORM STM32H7A_USBCORE_SRC PREPEND "${STM32H7A_USBCORE_DIR}/Src/")

set(STM32H7A_USBCDC_DIR "${MAIN_LIB_DIR}/main/STM32H7/Middlewares/ST/STM32_USB_Device_Library/Class/CDC")
set(STM32H7A_USBCDC_SRC
usbd_cdc.c
)
list(TRANSFORM STM32H7A_USBCDC_SRC PREPEND "${STM32H7A_USBCDC_DIR}/Src/")

set(STM32H7A_USBHID_DIR "${MAIN_LIB_DIR}/main/STM32H7/Middlewares/ST/STM32_USB_Device_Library/Class/HID")
set(STM32H7A_USBHID_SRC
usbd_hid.c
)
list(TRANSFORM STM32H7A_USBHID_SRC PREPEND "${STM32H7A_USBHID_DIR}/Src/")

set(STM32H7A_USBMSC_DIR "${MAIN_LIB_DIR}/main/STM32H7/Middlewares/ST/STM32_USB_Device_Library/Class/MSC")
set(STM32H7A_USBMSC_SRC
usbd_msc.c
usbd_msc_bot.c
usbd_msc_data.c
usbd_msc_scsi.c
)
list(TRANSFORM STM32H7A_USBMSC_SRC PREPEND "${STM32H7A_USBMSC_DIR}/Src/")

set(STM32H7A_USB_INCLUDE_DIRS
"${STM32H7A_USBCORE_DIR}/Inc"
"${STM32H7A_USBCDC_DIR}/Inc"
"${STM32H7A_USBHID_DIR}/Inc"
"${STM32H7A_USBMSC_DIR}/Inc"
)

list(APPEND STM32H7A_USB_SRC ${STM32H7A_USBCORE_SRC})
list(APPEND STM32H7A_USB_SRC ${STM32H7A_USBCDC_SRC})
list(APPEND STM32H7A_USB_SRC ${STM32H7A_USBHID_SRC})
#XXX: Not working yet
#list(APPEND STM32H7A_USB_SRC ${STM32H7A_USBMSC_SRC})
Loading
Loading