Skip to content

Commit 1389b1a

Browse files
author
Tauno Magnusson
committed
Adding CMakeLists.txt files for NUCLEO_G431KB
1 parent 8ea0eb5 commit 1389b1a

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

targets/TARGET_STM/TARGET_STM32G4/TARGET_STM32G431xB/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Copyright (c) 2020 ARM Limited. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4+
if("NUCLEO_G474RE" IN_LIST MBED_TARGET_LABELS)
5+
add_subdirectory(TARGET_NUCLEO_G431KB)
6+
endif()
7+
48
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
59
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32g431xx.S)
610
set(LINKER_FILE TOOLCHAIN_GCC_ARM/stm32g431xb.ld)
@@ -13,6 +17,7 @@ set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}
1317

1418
target_sources(mbed-core
1519
INTERFACE
20+
system_clock.c
1621
${STARTUP_FILE}
1722
)
1823

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copyright (c) 2020 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
target_sources(mbed-core
5+
INTERFACE
6+
PeripheralPins.c
7+
)
8+
9+
target_include_directories(mbed-core
10+
INTERFACE
11+
.
12+
)

0 commit comments

Comments
 (0)