Skip to content

Commit f7d22dc

Browse files
committed
factory-setup: Remove C implementation of RTT
The debug builds use the rust implementation of RTT. The two implementations cannot coexist. To be able to build debug builds of the factory-setup the C imeplementation is therefore removed. The factory-setup image is changed to use the second channel for API calls, since the first is used for debug console.
1 parent b22f44a commit f7d22dc

20 files changed

+90
-5064
lines changed

external/CMakeLists.txt

-11
Original file line numberDiff line numberDiff line change
@@ -251,17 +251,6 @@ add_library(ctaes
251251
)
252252
target_include_directories(ctaes SYSTEM PUBLIC ctaes)
253253

254-
add_library(rtt
255-
SEGGER_RTT_V796b/RTT/SEGGER_RTT.c
256-
)
257-
target_compile_options(rtt PRIVATE "-Wno-cast-qual")
258-
# Define RTT config vars. The default DOWN buffer size (buffer for reading from host) is 64, which
259-
# is too small for our need. The default UP buffer size (buffer for writing to host) is 1024, but
260-
# we define it anyway here in case the default changes.
261-
target_compile_definitions(rtt PUBLIC "BUFFER_SIZE_DOWN=(1024)" "BUFFER_SIZE_UP=(1024)")
262-
target_include_directories(rtt SYSTEM PUBLIC SEGGER_RTT_V796b/RTT SEGGER_RTT_V796b/Config)
263-
264-
265254
# optiga-trust-m
266255
# The below build instructions are loosely based on optiga-trust-m/tests/linux_i2c.cmake
267256
aux_source_directory(optiga-trust-m/src/cmd SRC_CMD_FILES)

external/SEGGER_RTT_V796b/Config/SEGGER_RTT_Conf.h

-425
This file was deleted.

external/SEGGER_RTT_V796b/Examples/Main_RTT_InputEchoApp.c

-43
This file was deleted.

external/SEGGER_RTT_V796b/Examples/Main_RTT_MenuApp.c

-70
This file was deleted.

external/SEGGER_RTT_V796b/Examples/Main_RTT_PrintfTest.c

-118
This file was deleted.

external/SEGGER_RTT_V796b/Examples/Main_RTT_SpeedTestApp.c

-69
This file was deleted.

external/SEGGER_RTT_V796b/LICENSE.md

-36
This file was deleted.

external/SEGGER_RTT_V796b/README.md

-24
This file was deleted.

0 commit comments

Comments
 (0)