Skip to content

Commit 45c8df0

Browse files
committed
[genpinmap] Update output directory name
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 3c580bf commit 45c8df0

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
@@ -1624,7 +1624,11 @@ def manage_repo():
16241624

16251625
for mcu_file in mcu_list:
16261626
print("Generating files for '{}'...".format(mcu_file.name))
1627-
out_path = cur_dir / "Arduino" / mcu_file.name[:7] / mcu_file.stem
1627+
if "MP1" in mcu_file.name:
1628+
mcu_dir = "STM32MP1xx"
1629+
else:
1630+
mcu_dir = mcu_file.name[:7] + "xx"
1631+
out_path = cur_dir / "Arduino" / mcu_dir / mcu_file.stem
16281632
periph_c_filepath = out_path / periph_c_filename
16291633
pinvar_h_filepath = out_path / pinvar_h_filename
16301634
variant_cpp_filepath = out_path / variant_cpp_filename

0 commit comments

Comments
 (0)