enable USBMC for uno r4, add board_init_after_tusb() API

add BOARD_UPPERCASE for board detection
This commit is contained in:
hathach
2023-07-31 19:09:40 +07:00
parent cb47231518
commit 3f788a4e5a
32 changed files with 123 additions and 3 deletions

View File

@@ -181,6 +181,11 @@ endfunction()
function(family_configure_common TARGET RTOS)
family_add_rtos(${TARGET} ${RTOS})
string(TOUPPER ${BOARD} BOARD_UPPER)
target_compile_definitions(${TARGET} PUBLIC
BOARD_${BOARD_UPPER}
)
# run size after build
add_custom_command(TARGET ${TARGET} POST_BUILD
COMMAND ${CMAKE_SIZE} $<TARGET_FILE:${TARGET}>