Use shared UMP protocol core and document DAC SPI review

This commit is contained in:
2026-10-01 14:02:12 +03:00
parent 2a9f42331c
commit 316dd52f99
9 changed files with 342 additions and 58 deletions

View File

@@ -11,7 +11,8 @@ unsigned int ADC_table[4];
/* Возвращаем номер строки при ошибке, ноль при успехе; CRT не требуется. */
__declspec(dllexport) int run_tests(void)
{
unsigned int i, generation, archived, reply[UMP_CAN_MAX_WORDS], error, length;
unsigned int i, generation, archived, error, length;
uint16_t reply[UMP_CAN_MAX_WORDS];
unsigned long sequence;
CHECK(!ump_log_write(UMP_LOG_BASE+1, 0));
CHECK(!ump_log_write(UMP_LOG_BASE+1, 1001));

View File

@@ -16,7 +16,7 @@ with tempfile.TemporaryDirectory(prefix='ump-recorder-') as directory:
'clang', '-shared', '-nostdlib', '-fuse-ld=lld',
'-Wl,/noentry,/nodefaultlib', '-Wno-unknown-pragmas', '-Wno-int-to-pointer-cast',
'-Itests/ump_logger/stubs', '-ISource/Internal/Include',
'tests/ump_logger/recorder_test.c', '-o', str(library),
'tests/ump_logger/recorder_test.c', 'Source/Internal/shared_ump.c', '-o', str(library),
], cwd=root, check=True)
# Отдельный процесс освобождает DLL до удаления временной папки Windows.
subprocess.run([