мелкие парвки

- поддержка символа '\' вкладке Wrapper User Code
- исправлены дефайны OFFSET_IN/OUT_ARRAY
- убрана конфигурация портов во время подгрузки конфигурации периферии
- исправлены подписи таблицы (Alias почему-то не записывался)
This commit is contained in:
2025-06-15 02:46:01 +03:00
parent d983f2525a
commit df30570d4a
6 changed files with 15 additions and 16 deletions

View File

@@ -190,10 +190,10 @@ classdef mcuPorts
for i = 1:n
if i == 1
lines{end+1} = '#define OFFSET_ARRAY_1 0';
lines{end+1} = sprintf('#define OFFSET_%s_ARRAY_1 0', upperPrefix);
else
lines{end+1} = sprintf('#define OFFSET_ARRAY_%d (OFFSET_ARRAY_%d + %s_PORT_%d_WIDTH)', ...
i, i - 1, upper(portPrefixes{i - 1}), i - 1);
lines{end+1} = sprintf('#define OFFSET_%s_ARRAY_%d (OFFSET_%s_ARRAY_%d + %s_PORT_%d_WIDTH)', ...
upperPrefix, i, upperPrefix, i - 1, upper(portPrefixes{i - 1}), i - 1);
end
end
newAuto = strjoin(lines, newline);
@@ -251,7 +251,7 @@ classdef mcuPorts
if i == n
comma = '';
end
lines{end+1} = sprintf(' OFFSET_ARRAY_%d%s', i, comma);
lines{end+1} = sprintf(' OFFSET_%s_ARRAY_%d%s', upperPrefix, i, comma);
end
lines{end+1} = '};';
lines{end+1} = '';