Skip to content

Commit bd47dc6

Browse files
authored
MAIN26 prep and AMK bench testing (#273)
1 parent f4aeea2 commit bd47dc6

File tree

28 files changed

+504
-2172
lines changed

28 files changed

+504
-2172
lines changed

.vscode/launch.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
"request": "launch",
99
"type": "cortex-debug",
1010
"servertype": "openocd",
11-
"device": "STM32F407VG",
12-
"svdFile": "${workspaceRoot}/common/svd/STM32F407.svd",
11+
"device": "STM32G474RET6",
12+
"svdFile": "${workspaceRoot}/common/svd/STM32G474xx.svd",
1313
"configFiles": [
1414
"interface/stlink.cfg",
15-
"target/stm32f4x.cfg"
15+
"target/stm32g4x.cfg"
1616
],
1717
"debuggerArgs": [
1818
"-d",

common/amk/CMakeLists.txt

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
set(TARGET_NAME AMK)
2-
add_library(${TARGET_NAME})
2+
add_library(${TARGET_NAME} INTERFACE)
33

4-
# Find all .c sources in project
5-
#file(GLOB_RECURSE glob_sources "*.c")
6-
target_sources(${TARGET_NAME} PRIVATE "amk.c")
7-
8-
# Find directories for '#include'
9-
# For libraries, these directories are all referenced to the top level firmware directory, CMAKE_SOURCE_DIR
10-
target_include_directories(${TARGET_NAME} PUBLIC ${CMAKE_SOURCE_DIR})
11-
12-
target_link_libraries(${TARGET_NAME} "common_defs;PHAL_F407")
4+
target_sources(${TARGET_NAME} INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/amk.c")
135

6+
target_include_directories(${TARGET_NAME} INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})

0 commit comments

Comments
 (0)