Added custom board option to STM Pins generation script

pull/12797/head
George Beckstein 2020-04-13 11:25:19 -04:00
parent 7fce7f552c
commit bcd8ebb645
1 changed files with 8 additions and 0 deletions

View File

@ -1248,6 +1248,10 @@ specify the board file description in STM32CubeMX to use (use double quotes).
Parameter can be a filter like L496 (only the first file found will be parsed).
'''))
group.add_argument("-c", "--custom", help=textwrap.dedent('''\
specify a custom board .ioc file description to use (use double quotes).
'''))
args = parser.parse_args()
if not(os.path.isdir(cubemxdir)):
@ -1364,6 +1368,10 @@ if args.target:
else:
quit()
# Parse the user's custom board .ioc file
if args.custom:
parse_BoardFile(args.custom)
for mcu_file in mcu_list:
if args.mcu:
TargetName = os.path.splitext(mcu_file)[0]