diff --git a/cmake/boards_db.cmake b/cmake/boards_db.cmake index 80088feb7e..d089719c10 100644 --- a/cmake/boards_db.cmake +++ b/cmake/boards_db.cmake @@ -73502,6 +73502,170 @@ target_compile_options(GENERIC_H503RBTX_xusb_HSFS INTERFACE "SHELL:-DUSE_USB_HS -DUSE_USB_HS_IN_FS" ) +# GENERIC_H562RGTX +# ----------------------------------------------------------------------------- + +set(GENERIC_H562RGTX_VARIANT_PATH "${CMAKE_CURRENT_LIST_DIR}/../variants/STM32H5xx/H562R(G-I)T") +set(GENERIC_H562RGTX_MAXSIZE 1048576) +set(GENERIC_H562RGTX_MAXDATASIZE 655360) +set(GENERIC_H562RGTX_MCU cortex-m33) +set(GENERIC_H562RGTX_FPCONF "-") +add_library(GENERIC_H562RGTX INTERFACE) +target_compile_options(GENERIC_H562RGTX INTERFACE + "SHELL:-DSTM32H562xx " + "SHELL:" + "SHELL:" + "SHELL:-mfpu=fpv4-sp-d16 -mfloat-abi=hard" + -mcpu=${GENERIC_H562RGTX_MCU} +) +target_compile_definitions(GENERIC_H562RGTX INTERFACE + "STM32H5xx" + "ARDUINO_GENERIC_H562RGTX" + "BOARD_NAME=\"GENERIC_H562RGTX\"" + "BOARD_ID=GENERIC_H562RGTX" + "VARIANT_H=\"variant_generic.h\"" +) +target_include_directories(GENERIC_H562RGTX 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_H562RGTX_VARIANT_PATH} +) + +target_link_options(GENERIC_H562RGTX INTERFACE + "LINKER:--default-script=${GENERIC_H562RGTX_VARIANT_PATH}/ldscript.ld" + "LINKER:--defsym=LD_FLASH_OFFSET=0x0" + "LINKER:--defsym=LD_MAX_SIZE=1048576" + "LINKER:--defsym=LD_MAX_DATA_SIZE=655360" + "SHELL:-mfpu=fpv4-sp-d16 -mfloat-abi=hard" + -mcpu=${GENERIC_H562RGTX_MCU} +) + +add_library(GENERIC_H562RGTX_serial_disabled INTERFACE) +target_compile_options(GENERIC_H562RGTX_serial_disabled INTERFACE + "SHELL:" +) +add_library(GENERIC_H562RGTX_serial_generic INTERFACE) +target_compile_options(GENERIC_H562RGTX_serial_generic INTERFACE + "SHELL:-DHAL_UART_MODULE_ENABLED" +) +add_library(GENERIC_H562RGTX_serial_none INTERFACE) +target_compile_options(GENERIC_H562RGTX_serial_none INTERFACE + "SHELL:-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE" +) +add_library(GENERIC_H562RGTX_usb_CDC INTERFACE) +target_compile_options(GENERIC_H562RGTX_usb_CDC INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB" +) +add_library(GENERIC_H562RGTX_usb_CDCgen INTERFACE) +target_compile_options(GENERIC_H562RGTX_usb_CDCgen INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC" +) +add_library(GENERIC_H562RGTX_usb_HID INTERFACE) +target_compile_options(GENERIC_H562RGTX_usb_HID INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_HID_COMPOSITE" +) +add_library(GENERIC_H562RGTX_usb_none INTERFACE) +target_compile_options(GENERIC_H562RGTX_usb_none INTERFACE + "SHELL:" +) +add_library(GENERIC_H562RGTX_xusb_FS INTERFACE) +target_compile_options(GENERIC_H562RGTX_xusb_FS INTERFACE + "SHELL:" +) +add_library(GENERIC_H562RGTX_xusb_HS INTERFACE) +target_compile_options(GENERIC_H562RGTX_xusb_HS INTERFACE + "SHELL:-DUSE_USB_HS" +) +add_library(GENERIC_H562RGTX_xusb_HSFS INTERFACE) +target_compile_options(GENERIC_H562RGTX_xusb_HSFS INTERFACE + "SHELL:-DUSE_USB_HS -DUSE_USB_HS_IN_FS" +) + +# GENERIC_H562RITX +# ----------------------------------------------------------------------------- + +set(GENERIC_H562RITX_VARIANT_PATH "${CMAKE_CURRENT_LIST_DIR}/../variants/STM32H5xx/H562R(G-I)T") +set(GENERIC_H562RITX_MAXSIZE 2097152) +set(GENERIC_H562RITX_MAXDATASIZE 655360) +set(GENERIC_H562RITX_MCU cortex-m33) +set(GENERIC_H562RITX_FPCONF "-") +add_library(GENERIC_H562RITX INTERFACE) +target_compile_options(GENERIC_H562RITX INTERFACE + "SHELL:-DSTM32H562xx " + "SHELL:" + "SHELL:" + "SHELL:-mfpu=fpv4-sp-d16 -mfloat-abi=hard" + -mcpu=${GENERIC_H562RITX_MCU} +) +target_compile_definitions(GENERIC_H562RITX INTERFACE + "STM32H5xx" + "ARDUINO_GENERIC_H562RITX" + "BOARD_NAME=\"GENERIC_H562RITX\"" + "BOARD_ID=GENERIC_H562RITX" + "VARIANT_H=\"variant_generic.h\"" +) +target_include_directories(GENERIC_H562RITX 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_H562RITX_VARIANT_PATH} +) + +target_link_options(GENERIC_H562RITX INTERFACE + "LINKER:--default-script=${GENERIC_H562RITX_VARIANT_PATH}/ldscript.ld" + "LINKER:--defsym=LD_FLASH_OFFSET=0x0" + "LINKER:--defsym=LD_MAX_SIZE=2097152" + "LINKER:--defsym=LD_MAX_DATA_SIZE=655360" + "SHELL:-mfpu=fpv4-sp-d16 -mfloat-abi=hard" + -mcpu=${GENERIC_H562RITX_MCU} +) + +add_library(GENERIC_H562RITX_serial_disabled INTERFACE) +target_compile_options(GENERIC_H562RITX_serial_disabled INTERFACE + "SHELL:" +) +add_library(GENERIC_H562RITX_serial_generic INTERFACE) +target_compile_options(GENERIC_H562RITX_serial_generic INTERFACE + "SHELL:-DHAL_UART_MODULE_ENABLED" +) +add_library(GENERIC_H562RITX_serial_none INTERFACE) +target_compile_options(GENERIC_H562RITX_serial_none INTERFACE + "SHELL:-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE" +) +add_library(GENERIC_H562RITX_usb_CDC INTERFACE) +target_compile_options(GENERIC_H562RITX_usb_CDC INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB" +) +add_library(GENERIC_H562RITX_usb_CDCgen INTERFACE) +target_compile_options(GENERIC_H562RITX_usb_CDCgen INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC" +) +add_library(GENERIC_H562RITX_usb_HID INTERFACE) +target_compile_options(GENERIC_H562RITX_usb_HID INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_HID_COMPOSITE" +) +add_library(GENERIC_H562RITX_usb_none INTERFACE) +target_compile_options(GENERIC_H562RITX_usb_none INTERFACE + "SHELL:" +) +add_library(GENERIC_H562RITX_xusb_FS INTERFACE) +target_compile_options(GENERIC_H562RITX_xusb_FS INTERFACE + "SHELL:" +) +add_library(GENERIC_H562RITX_xusb_HS INTERFACE) +target_compile_options(GENERIC_H562RITX_xusb_HS INTERFACE + "SHELL:-DUSE_USB_HS" +) +add_library(GENERIC_H562RITX_xusb_HSFS INTERFACE) +target_compile_options(GENERIC_H562RITX_xusb_HSFS INTERFACE + "SHELL:-DUSE_USB_HS -DUSE_USB_HS_IN_FS" +) + # GENERIC_H563IIKXQ # ----------------------------------------------------------------------------- @@ -109800,6 +109964,88 @@ target_link_options(VCCGND_F407ZG_MINI_hid INTERFACE ) +# WEACT_H562RG +# ----------------------------------------------------------------------------- + +set(WEACT_H562RG_VARIANT_PATH "${CMAKE_CURRENT_LIST_DIR}/../variants/STM32H5xx/H562R(G-I)T") +set(WEACT_H562RG_MAXSIZE 1048576) +set(WEACT_H562RG_MAXDATASIZE 655360) +set(WEACT_H562RG_MCU cortex-m33) +set(WEACT_H562RG_FPCONF "-") +add_library(WEACT_H562RG INTERFACE) +target_compile_options(WEACT_H562RG INTERFACE + "SHELL:-DSTM32H562xx " + "SHELL:-DCUSTOM_PERIPHERAL_PINS" + "SHELL:" + "SHELL:-mfpu=fpv4-sp-d16 -mfloat-abi=hard" + -mcpu=${WEACT_H562RG_MCU} +) +target_compile_definitions(WEACT_H562RG INTERFACE + "STM32H5xx" + "ARDUINO_WEACT_H562RG" + "BOARD_NAME=\"WEACT_H562RG\"" + "BOARD_ID=WEACT_H562RG" + "VARIANT_H=\"variant_WEACT_H562RG.h\"" +) +target_include_directories(WEACT_H562RG 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/ + ${WEACT_H562RG_VARIANT_PATH} +) + +target_link_options(WEACT_H562RG INTERFACE + "LINKER:--default-script=${WEACT_H562RG_VARIANT_PATH}/ldscript.ld" + "LINKER:--defsym=LD_FLASH_OFFSET=0x0" + "LINKER:--defsym=LD_MAX_SIZE=1048576" + "LINKER:--defsym=LD_MAX_DATA_SIZE=655360" + "SHELL:-mfpu=fpv4-sp-d16 -mfloat-abi=hard" + -mcpu=${WEACT_H562RG_MCU} +) + +add_library(WEACT_H562RG_serial_disabled INTERFACE) +target_compile_options(WEACT_H562RG_serial_disabled INTERFACE + "SHELL:" +) +add_library(WEACT_H562RG_serial_generic INTERFACE) +target_compile_options(WEACT_H562RG_serial_generic INTERFACE + "SHELL:-DHAL_UART_MODULE_ENABLED" +) +add_library(WEACT_H562RG_serial_none INTERFACE) +target_compile_options(WEACT_H562RG_serial_none INTERFACE + "SHELL:-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE" +) +add_library(WEACT_H562RG_usb_CDC INTERFACE) +target_compile_options(WEACT_H562RG_usb_CDC INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB" +) +add_library(WEACT_H562RG_usb_CDCgen INTERFACE) +target_compile_options(WEACT_H562RG_usb_CDCgen INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC" +) +add_library(WEACT_H562RG_usb_HID INTERFACE) +target_compile_options(WEACT_H562RG_usb_HID INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_HID_COMPOSITE" +) +add_library(WEACT_H562RG_usb_none INTERFACE) +target_compile_options(WEACT_H562RG_usb_none INTERFACE + "SHELL:" +) +add_library(WEACT_H562RG_xusb_FS INTERFACE) +target_compile_options(WEACT_H562RG_xusb_FS INTERFACE + "SHELL:" +) +add_library(WEACT_H562RG_xusb_HS INTERFACE) +target_compile_options(WEACT_H562RG_xusb_HS INTERFACE + "SHELL:-DUSE_USB_HS" +) +add_library(WEACT_H562RG_xusb_HSFS INTERFACE) +target_compile_options(WEACT_H562RG_xusb_HSFS INTERFACE + "SHELL:-DUSE_USB_HS -DUSE_USB_HS_IN_FS" +) + # WeActMiniH743VITX # ----------------------------------------------------------------------------- diff --git a/variants/STM32H5xx/H562R(G-I)T/CMakeLists.txt b/variants/STM32H5xx/H562R(G-I)T/CMakeLists.txt index 2a4d55b6b1..fe9de1be07 100644 --- a/variants/STM32H5xx/H562R(G-I)T/CMakeLists.txt +++ b/variants/STM32H5xx/H562R(G-I)T/CMakeLists.txt @@ -21,7 +21,9 @@ target_link_libraries(variant INTERFACE variant_usage) add_library(variant_bin STATIC EXCLUDE_FROM_ALL generic_clock.c PeripheralPins.c + PeripheralPins_WEACT_H562RG.c variant_generic.cpp + variant_WEACT_H562RG.cpp ) target_link_libraries(variant_bin PUBLIC variant_usage)