modified the bsp files of at32 to make them work better

This commit is contained in:
zhiqiang
2025-09-04 14:38:27 +08:00
parent 93487deab7
commit f6ca80ab13
27 changed files with 384 additions and 293 deletions

View File

@@ -51,9 +51,12 @@ function(add_board_target BOARD_TARGET)
${AT32_SDK_LIB}/drivers/inc
)
target_compile_definitions(${BOARD_TARGET} PUBLIC
BOARD_TUD_RHPORT=0
BOARD_TUD_RHPORT=1
BOARD_TUH_RHPORT=0
BOARD_TUD_MAX_SPEED=OPT_MODE_FULL_SPEED
BOARD_TUH_MAX_SPEED=OPT_MODE_FULL_SPEED
)
update_board(${BOARD_TARGET})
if (CMAKE_C_COMPILER_ID STREQUAL "GNU")