summaryrefslogtreecommitdiff
path: root/fw/cdc-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/JTest/src/jtest_dump_str_segments.c
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2020-12-20 15:18:02 +0100
committerjaseg <git@jaseg.de>2020-12-20 15:18:02 +0100
commit94f94260ace13688285fc8c62687079b26c18854 (patch)
tree4691249052e28be4d3515c6d2ed4b40545c21ea7 /fw/cdc-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/JTest/src/jtest_dump_str_segments.c
parent3559d845d29272050d4d44e18e0bb84e676e48ff (diff)
downloadminikbd-94f94260ace13688285fc8c62687079b26c18854.tar.gz
minikbd-94f94260ace13688285fc8c62687079b26c18854.tar.bz2
minikbd-94f94260ace13688285fc8c62687079b26c18854.zip
Submodule-cache WIP
Diffstat (limited to 'fw/cdc-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/JTest/src/jtest_dump_str_segments.c')
-rw-r--r--fw/cdc-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/JTest/src/jtest_dump_str_segments.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/fw/cdc-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/JTest/src/jtest_dump_str_segments.c b/fw/cdc-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/JTest/src/jtest_dump_str_segments.c
deleted file mode 100644
index c3a9bf8..0000000
--- a/fw/cdc-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/JTest/src/jtest_dump_str_segments.c
+++ /dev/null
@@ -1,36 +0,0 @@
-#include "jtest_fw.h"
-
-/**
- * Dump the JTEST_FW.str_buffer the Keil framework in pieces.
- *
- * The JTEST_FW.str_buffer contains more characters than the Keil framework can
- * dump at once. This function dumps them in blocks.
- */
-void jtest_dump_str_segments(void)
-{
- uint32_t seg_idx = 0;
- uint32_t memmove_idx = 0;
- uint32_t seg_cnt =
- (strlen(JTEST_FW.str_buffer) / JTEST_STR_MAX_OUTPUT_SIZE) + 1;
-
- for( seg_idx = 0; seg_idx < seg_cnt; ++seg_idx)
- {
- JTEST_TRIGGER_ACTION(dump_str);
-
- if (seg_idx < JTEST_STR_MAX_OUTPUT_SEGMENTS)
- {
- memmove_idx = 0;
- while (memmove_idx < (seg_cnt - seg_idx -1) )
- {
- memmove(
- JTEST_FW.str_buffer+
- (memmove_idx* JTEST_STR_MAX_OUTPUT_SIZE),
- JTEST_FW.str_buffer+
- ((memmove_idx+1)*JTEST_STR_MAX_OUTPUT_SIZE),
- JTEST_BUF_SIZE);
- ++memmove_idx;
- }
- }
- }
- return;
-}