hathach 57aac432b5
add new tusb_int_handler(rhport, in_isr) as common irq handler
update tusb_init() to take rhport and role, defined as macro with optional argument for backward compatible
2024-10-10 16:28:36 +07:00

13 lines
302 B
CMake

set(MCU_VARIANT stm32f412zx)
set(JLINK_DEVICE stm32f412zg)
# set(JLINK_OPTION "-USB 000771775987")
set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/STM32F412ZGTx_FLASH.ld)
function(update_board TARGET)
target_compile_definitions(${TARGET} PUBLIC
STM32F412Zx
BOARD_TUD_RHPORT=0
)
endfunction()