Skip to content

Commit

Permalink
chore(cmake): update with new board
Browse files Browse the repository at this point in the history
Signed-off-by: Frederic Pillon <[email protected]>
  • Loading branch information
fpistm committed Oct 3, 2024
1 parent cc8ca1c commit 19be215
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
54 changes: 54 additions & 0 deletions cmake/boards_db.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -108286,6 +108286,60 @@ target_compile_options(ST3DP001_EVAL_xusb_HSFS INTERFACE
"SHELL:-DUSE_USB_HS -DUSE_USB_HS_IN_FS"
)

# STEAM32_WB55RG
# -----------------------------------------------------------------------------

set(STEAM32_WB55RG_VARIANT_PATH "${CMAKE_CURRENT_LIST_DIR}/../variants/STM32WBxx/WB55R(C-E-G)V")
set(STEAM32_WB55RG_MAXSIZE 524288)
set(STEAM32_WB55RG_MAXDATASIZE 196608)
set(STEAM32_WB55RG_MCU cortex-m4)
set(STEAM32_WB55RG_FPCONF "fpv4-sp-d16-hard")
add_library(STEAM32_WB55RG INTERFACE)
target_compile_options(STEAM32_WB55RG INTERFACE
"SHELL:-DSTM32WB55xx "
"SHELL:"
"SHELL:"
"SHELL:-mfpu=fpv4-sp-d16 -mfloat-abi=hard"
-mcpu=${STEAM32_WB55RG_MCU}
)
target_compile_definitions(STEAM32_WB55RG INTERFACE
"STM32WBxx"
"ARDUINO_STEAM32_WB55RG"
"BOARD_NAME=\"STEAM32_WB55RG\""
"BOARD_ID=STEAM32_WB55RG"
"VARIANT_H=\"variant_STEAM32_WB55RG.h\""
)
target_include_directories(STEAM32_WB55RG INTERFACE
${CMAKE_CURRENT_LIST_DIR}/../system/STM32WBxx
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32WBxx_HAL_Driver/Inc
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32WBxx_HAL_Driver/Src
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32WBxx/Include/
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32WBxx/Source/Templates/gcc/
${STEAM32_WB55RG_VARIANT_PATH}
)

target_link_options(STEAM32_WB55RG INTERFACE
"LINKER:--default-script=${STEAM32_WB55RG_VARIANT_PATH}/ldscript.ld"
"LINKER:--defsym=LD_FLASH_OFFSET=0x0"
"LINKER:--defsym=LD_MAX_SIZE=524288"
"LINKER:--defsym=LD_MAX_DATA_SIZE=196608"
"SHELL:-mfpu=fpv4-sp-d16 -mfloat-abi=hard"
-mcpu=${STEAM32_WB55RG_MCU}
)

add_library(STEAM32_WB55RG_serial_disabled INTERFACE)
target_compile_options(STEAM32_WB55RG_serial_disabled INTERFACE
"SHELL:"
)
add_library(STEAM32_WB55RG_serial_generic INTERFACE)
target_compile_options(STEAM32_WB55RG_serial_generic INTERFACE
"SHELL:-DHAL_UART_MODULE_ENABLED"
)
add_library(STEAM32_WB55RG_serial_none INTERFACE)
target_compile_options(STEAM32_WB55RG_serial_none INTERFACE
"SHELL:-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE"
)

# STEVAL_MKBOXPRO
# -----------------------------------------------------------------------------

Expand Down
1 change: 1 addition & 0 deletions variants/STM32WBxx/WB55R(C-E-G)V/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ add_library(variant_bin STATIC EXCLUDE_FROM_ALL
PeripheralPins.c
variant_generic.cpp
variant_P_NUCLEO_WB55RG.cpp
variant_STEAM32_WB55RG.cpp
)
target_link_libraries(variant_bin PUBLIC variant_usage)

Expand Down

0 comments on commit 19be215

Please sign in to comment.