Skip to content

Commit

Permalink
chore(cmake): update files
Browse files Browse the repository at this point in the history
Signed-off-by: Frederic Pillon <[email protected]>
  • Loading branch information
fpistm committed Aug 30, 2023
1 parent b60768a commit 4677fab
Show file tree
Hide file tree
Showing 2 changed files with 171 additions and 0 deletions.
170 changes: 170 additions & 0 deletions cmake/boards_db.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -71230,6 +71230,91 @@ target_compile_options(GENERIC_G4A1VETX_xusb_HSFS INTERFACE
"SHELL:-DUSE_USB_HS -DUSE_USB_HS_IN_FS"
)

# GENERIC_H503RBTX
# -----------------------------------------------------------------------------

set(GENERIC_H503RBTX_VARIANT_PATH "${CMAKE_CURRENT_LIST_DIR}/../variants/STM32H5xx/H503RBT")
set(GENERIC_H503RBTX_MAXSIZE 131072)
set(GENERIC_H503RBTX_MAXDATASIZE 32768)
set(GENERIC_H503RBTX_MCU cortex-m33)
set(GENERIC_H503RBTX_FPCONF "-")
add_library(GENERIC_H503RBTX INTERFACE)
target_compile_options(GENERIC_H503RBTX INTERFACE
"SHELL:-DSTM32H503xx "
"SHELL:"
"SHELL:"
"SHELL:-mfpu=fpv4-sp-d16 -mfloat-abi=hard"
-mcpu=${GENERIC_H503RBTX_MCU}
)
target_compile_definitions(GENERIC_H503RBTX INTERFACE
"STM32H5xx"
"ARDUINO_GENERIC_H503RBTX"
"BOARD_NAME=\"GENERIC_H503RBTX\""
"BOARD_ID=GENERIC_H503RBTX"
"VARIANT_H=\"variant_generic.h\""
)
target_include_directories(GENERIC_H503RBTX INTERFACE
${CMAKE_CURRENT_LIST_DIR}/../system/STM32H5xx
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32H5xx_HAL_Driver/Inc
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32H5xx_HAL_Driver/Src
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32H5xx/Include/
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32H5xx/Source/Templates/gcc/
${GENERIC_H503RBTX_VARIANT_PATH}
)

target_link_options(GENERIC_H503RBTX INTERFACE
"LINKER:--default-script=${GENERIC_H503RBTX_VARIANT_PATH}/ldscript.ld"
"LINKER:--defsym=LD_FLASH_OFFSET=0x0"
"LINKER:--defsym=LD_MAX_SIZE=131072"
"LINKER:--defsym=LD_MAX_DATA_SIZE=32768"
"SHELL:-mfpu=fpv4-sp-d16 -mfloat-abi=hard"
-mcpu=${GENERIC_H503RBTX_MCU}
)
target_link_libraries(GENERIC_H503RBTX INTERFACE
arm_ARMv8MMLlfsp_math
)

add_library(GENERIC_H503RBTX_serial_disabled INTERFACE)
target_compile_options(GENERIC_H503RBTX_serial_disabled INTERFACE
"SHELL:"
)
add_library(GENERIC_H503RBTX_serial_generic INTERFACE)
target_compile_options(GENERIC_H503RBTX_serial_generic INTERFACE
"SHELL:-DHAL_UART_MODULE_ENABLED"
)
add_library(GENERIC_H503RBTX_serial_none INTERFACE)
target_compile_options(GENERIC_H503RBTX_serial_none INTERFACE
"SHELL:-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE"
)
add_library(GENERIC_H503RBTX_usb_CDC INTERFACE)
target_compile_options(GENERIC_H503RBTX_usb_CDC INTERFACE
"SHELL:-DUSBCON -DUSBD_VID=0 -DUSBD_PID=0 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB"
)
add_library(GENERIC_H503RBTX_usb_CDCgen INTERFACE)
target_compile_options(GENERIC_H503RBTX_usb_CDCgen INTERFACE
"SHELL:-DUSBCON -DUSBD_VID=0 -DUSBD_PID=0 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC"
)
add_library(GENERIC_H503RBTX_usb_HID INTERFACE)
target_compile_options(GENERIC_H503RBTX_usb_HID INTERFACE
"SHELL:-DUSBCON -DUSBD_VID=0 -DUSBD_PID=0 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_HID_COMPOSITE"
)
add_library(GENERIC_H503RBTX_usb_none INTERFACE)
target_compile_options(GENERIC_H503RBTX_usb_none INTERFACE
"SHELL:"
)
add_library(GENERIC_H503RBTX_xusb_FS INTERFACE)
target_compile_options(GENERIC_H503RBTX_xusb_FS INTERFACE
"SHELL:"
)
add_library(GENERIC_H503RBTX_xusb_HS INTERFACE)
target_compile_options(GENERIC_H503RBTX_xusb_HS INTERFACE
"SHELL:-DUSE_USB_HS"
)
add_library(GENERIC_H503RBTX_xusb_HSFS INTERFACE)
target_compile_options(GENERIC_H503RBTX_xusb_HSFS INTERFACE
"SHELL:-DUSE_USB_HS -DUSE_USB_HS_IN_FS"
)

# GENERIC_H563IIKXQ
# -----------------------------------------------------------------------------

Expand Down Expand Up @@ -98518,6 +98603,91 @@ target_compile_options(NUCLEO_G474RE_xusb_HSFS INTERFACE
"SHELL:-DUSE_USB_HS -DUSE_USB_HS_IN_FS"
)

# NUCLEO_H503RB
# -----------------------------------------------------------------------------

set(NUCLEO_H503RB_VARIANT_PATH "${CMAKE_CURRENT_LIST_DIR}/../variants/STM32H5xx/H503RBT")
set(NUCLEO_H503RB_MAXSIZE 131072)
set(NUCLEO_H503RB_MAXDATASIZE 32768)
set(NUCLEO_H503RB_MCU cortex-m33)
set(NUCLEO_H503RB_FPCONF "fpv4-sp-d16-hard")
add_library(NUCLEO_H503RB INTERFACE)
target_compile_options(NUCLEO_H503RB INTERFACE
"SHELL:-DSTM32H503xx "
"SHELL:"
"SHELL:"
"SHELL:-mfpu=fpv4-sp-d16 -mfloat-abi=hard"
-mcpu=${NUCLEO_H503RB_MCU}
)
target_compile_definitions(NUCLEO_H503RB INTERFACE
"STM32H5xx"
"ARDUINO_NUCLEO_H503RB"
"BOARD_NAME=\"NUCLEO_H503RB\""
"BOARD_ID=NUCLEO_H503RB"
"VARIANT_H=\"variant_NUCLEO_H503RB.h\""
)
target_include_directories(NUCLEO_H503RB INTERFACE
${CMAKE_CURRENT_LIST_DIR}/../system/STM32H5xx
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32H5xx_HAL_Driver/Inc
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32H5xx_HAL_Driver/Src
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32H5xx/Include/
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32H5xx/Source/Templates/gcc/
${NUCLEO_H503RB_VARIANT_PATH}
)

target_link_options(NUCLEO_H503RB INTERFACE
"LINKER:--default-script=${NUCLEO_H503RB_VARIANT_PATH}/ldscript.ld"
"LINKER:--defsym=LD_FLASH_OFFSET=0x0"
"LINKER:--defsym=LD_MAX_SIZE=131072"
"LINKER:--defsym=LD_MAX_DATA_SIZE=32768"
"SHELL:-mfpu=fpv4-sp-d16 -mfloat-abi=hard"
-mcpu=${NUCLEO_H503RB_MCU}
)
target_link_libraries(NUCLEO_H503RB INTERFACE

)

add_library(NUCLEO_H503RB_serial_disabled INTERFACE)
target_compile_options(NUCLEO_H503RB_serial_disabled INTERFACE
"SHELL:"
)
add_library(NUCLEO_H503RB_serial_generic INTERFACE)
target_compile_options(NUCLEO_H503RB_serial_generic INTERFACE
"SHELL:-DHAL_UART_MODULE_ENABLED"
)
add_library(NUCLEO_H503RB_serial_none INTERFACE)
target_compile_options(NUCLEO_H503RB_serial_none INTERFACE
"SHELL:-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE"
)
add_library(NUCLEO_H503RB_usb_CDC INTERFACE)
target_compile_options(NUCLEO_H503RB_usb_CDC INTERFACE
"SHELL:-DUSBCON -DUSBD_VID=0 -DUSBD_PID=0 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB"
)
add_library(NUCLEO_H503RB_usb_CDCgen INTERFACE)
target_compile_options(NUCLEO_H503RB_usb_CDCgen INTERFACE
"SHELL:-DUSBCON -DUSBD_VID=0 -DUSBD_PID=0 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC"
)
add_library(NUCLEO_H503RB_usb_HID INTERFACE)
target_compile_options(NUCLEO_H503RB_usb_HID INTERFACE
"SHELL:-DUSBCON -DUSBD_VID=0 -DUSBD_PID=0 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_HID_COMPOSITE"
)
add_library(NUCLEO_H503RB_usb_none INTERFACE)
target_compile_options(NUCLEO_H503RB_usb_none INTERFACE
"SHELL:"
)
add_library(NUCLEO_H503RB_xusb_FS INTERFACE)
target_compile_options(NUCLEO_H503RB_xusb_FS INTERFACE
"SHELL:"
)
add_library(NUCLEO_H503RB_xusb_HS INTERFACE)
target_compile_options(NUCLEO_H503RB_xusb_HS INTERFACE
"SHELL:-DUSE_USB_HS"
)
add_library(NUCLEO_H503RB_xusb_HSFS INTERFACE)
target_compile_options(NUCLEO_H503RB_xusb_HSFS INTERFACE
"SHELL:-DUSE_USB_HS -DUSE_USB_HS_IN_FS"
)

# NUCLEO_H563ZI
# -----------------------------------------------------------------------------

Expand Down
1 change: 1 addition & 0 deletions variants/STM32H5xx/H503RBT/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ add_library(variant_bin STATIC EXCLUDE_FROM_ALL
generic_clock.c
PeripheralPins.c
variant_generic.cpp
variant_NUCLEO_H503RB.cpp
)
target_link_libraries(variant_bin PUBLIC variant_usage)

Expand Down

0 comments on commit 4677fab

Please sign in to comment.