8000 [genpinmap] Update output directory name · stm32duino/Arduino_Tools@df464ff · GitHub
[go: up one dir, main page]

Skip to content

Commit df464ff

Browse files
committed
[genpinmap] Update output directory name
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 507e2e3 commit df464ff

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/genpinmap/genpinmap_arduino.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1653,7 +1653,11 @@ def manage_repo():
16531653

16541654
for mcu_file in mcu_list:
16551655
print("Generating files for '{}'...".format(mcu_file.name))
1656-
out_path = cur_dir / "Arduino" / mcu_file.name[:7] / mcu_file.stem
1656+
if "MP1" in mcu_file.name:
1657+
mcu_dir = "STM32MP1xx"
1658+
else:
1659+
mcu_dir = mcu_file.name[:7] + "xx"
1660+
out_path = cur_dir / "Arduino" / mcu_dir / mcu_file.stem
16571661
periph_c_filepath = out_path / periph_c_filename
16581662
pinvar_h_filepath = out_path / pinvar_h_filename
16591663
variant_cpp_filepath = out_path / variant_cpp_filename

0 commit comments

Comments
 (0)
0