mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-20 22:20:55 +00:00
Update make
This commit is contained in:
parent
bf2e54e3d3
commit
de02748504
@ -6,5 +6,6 @@ set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/STM32F405RGTx_FLASH.ld)
|
|||||||
function(update_board TARGET)
|
function(update_board TARGET)
|
||||||
target_compile_definitions(${TARGET} PUBLIC
|
target_compile_definitions(${TARGET} PUBLIC
|
||||||
STM32F405xx
|
STM32F405xx
|
||||||
|
BOARD_TUD_RHPORT=0
|
||||||
)
|
)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
@ -6,5 +6,6 @@ set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/STM32F405RGTx_FLASH.ld)
|
|||||||
function(update_board TARGET)
|
function(update_board TARGET)
|
||||||
target_compile_definitions(${TARGET} PUBLIC
|
target_compile_definitions(${TARGET} PUBLIC
|
||||||
STM32F405xx
|
STM32F405xx
|
||||||
|
BOARD_TUD_RHPORT=0
|
||||||
)
|
)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
@ -6,5 +6,6 @@ set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/STM32F401VCTx_FLASH.ld)
|
|||||||
function(update_board TARGET)
|
function(update_board TARGET)
|
||||||
target_compile_definitions(${TARGET} PUBLIC
|
target_compile_definitions(${TARGET} PUBLIC
|
||||||
STM32F405xx
|
STM32F405xx
|
||||||
|
BOARD_TUD_RHPORT=0
|
||||||
)
|
)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
@ -6,5 +6,6 @@ set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/STM32F407VGTx_FLASH.ld)
|
|||||||
function(update_board TARGET)
|
function(update_board TARGET)
|
||||||
target_compile_definitions(${TARGET} PUBLIC
|
target_compile_definitions(${TARGET} PUBLIC
|
||||||
STM32F407xx
|
STM32F407xx
|
||||||
|
BOARD_TUD_RHPORT=0
|
||||||
)
|
)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
@ -6,5 +6,6 @@ set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/STM32F411CEUx_FLASH.ld)
|
|||||||
function(update_board TARGET)
|
function(update_board TARGET)
|
||||||
target_compile_definitions(${TARGET} PUBLIC
|
target_compile_definitions(${TARGET} PUBLIC
|
||||||
STM32F411xE
|
STM32F411xE
|
||||||
|
BOARD_TUD_RHPORT=0
|
||||||
)
|
)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
@ -6,5 +6,6 @@ set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/STM32F411VETx_FLASH.ld)
|
|||||||
function(update_board TARGET)
|
function(update_board TARGET)
|
||||||
target_compile_definitions(${TARGET} PUBLIC
|
target_compile_definitions(${TARGET} PUBLIC
|
||||||
STM32F411xE
|
STM32F411xE
|
||||||
|
BOARD_TUD_RHPORT=0
|
||||||
)
|
)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
@ -6,5 +6,6 @@ set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/STM32F412ZGTx_FLASH.ld)
|
|||||||
function(update_board TARGET)
|
function(update_board TARGET)
|
||||||
target_compile_definitions(${TARGET} PUBLIC
|
target_compile_definitions(${TARGET} PUBLIC
|
||||||
STM32F412Zx
|
STM32F412Zx
|
||||||
|
BOARD_TUD_RHPORT=0
|
||||||
)
|
)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
@ -6,5 +6,6 @@ set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/STM32F412ZGTx_FLASH.ld)
|
|||||||
function(update_board TARGET)
|
function(update_board TARGET)
|
||||||
target_compile_definitions(${TARGET} PUBLIC
|
target_compile_definitions(${TARGET} PUBLIC
|
||||||
STM32F412Zx
|
STM32F412Zx
|
||||||
|
BOARD_TUD_RHPORT=0
|
||||||
)
|
)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
@ -6,5 +6,6 @@ set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/STM32F439ZITX_FLASH.ld)
|
|||||||
function(update_board TARGET)
|
function(update_board TARGET)
|
||||||
target_compile_definitions(${TARGET} PUBLIC
|
target_compile_definitions(${TARGET} PUBLIC
|
||||||
STM32F439xx
|
STM32F439xx
|
||||||
|
BOARD_TUD_RHPORT=0
|
||||||
)
|
)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
@ -8,11 +8,14 @@ ST_HAL_DRIVER = hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
|||||||
include $(TOP)/$(BOARD_PATH)/board.mk
|
include $(TOP)/$(BOARD_PATH)/board.mk
|
||||||
CPU_CORE ?= cortex-m4
|
CPU_CORE ?= cortex-m4
|
||||||
|
|
||||||
|
PORT ?= 0
|
||||||
|
|
||||||
# --------------
|
# --------------
|
||||||
# Compiler Flags
|
# Compiler Flags
|
||||||
# --------------
|
# --------------
|
||||||
CFLAGS += \
|
CFLAGS += \
|
||||||
-DCFG_TUSB_MCU=OPT_MCU_STM32F4
|
-DCFG_TUSB_MCU=OPT_MCU_STM32F4 \
|
||||||
|
-DBOARD_TUD_RHPORT=$(PORT)
|
||||||
|
|
||||||
# GCC Flags
|
# GCC Flags
|
||||||
CFLAGS_GCC += \
|
CFLAGS_GCC += \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user