@@ -1716,7 +1716,7 @@ def manage_repo():
17161716templates_dir = cur_dir / "templates"
17171717mcu_family_dir = ""
17181718filtered_family = ""
1719- filtered_mcu_file = ""
1719+ # filtered_mcu_file = ""
17201720periph_c_filename = "PeripheralPins.c"
17211721pinvar_h_filename = "PinNamesVar.h"
17221722config_filename = Path ("variant_config.json" )
@@ -1778,18 +1778,18 @@ def manage_repo():
17781778 help = "list available xml files description in database" ,
17791779 action = "store_true" ,
17801780)
1781- group .add_argument (
1782- "-m" ,
1783- "--mcu" ,
1784- metavar = "xml" ,
1785- help = textwrap .dedent (
1786- """\
1787- Generate all files for specified mcu xml file description in database.
1788- This xml file can contain non alpha characters in its name,
1789- you should call it with double quotes.
1790- """
1791- ),
1792- )
1781+ # group.add_argument(
1782+ # "-m",
1783+ # "--mcu",
1784+ # metavar="xml",
1785+ # help=textwrap.dedent(
1786+ # """\
1787+ # Generate all files for specified mcu xml file description in database.
1788+ # This xml file can contain non alpha characters in its name,
1789+ # you should call it with double quotes.
1790+ # """
1791+ # ),
1792+ # )
17931793
17941794group .add_argument (
17951795 "-f" ,
@@ -1854,16 +1854,16 @@ def manage_repo():
18541854 db_release = release_match .group (1 )
18551855print ("CubeMX DB release {}\n " .format (db_release ))
18561856
1857- if args .mcu :
1858- # Check input file exists
1859- if not ((dirMCU / args .mcu ).is_file ()):
1860- print ("\n " + args .mcu + " file not found" )
1861- print ("\n Check in " + dirMCU + " the correct name of this file" )
1862- print ("\n You may use double quotes for file containing special characters" )
1863- quit ()
1864- # Get the family of the desired mcu file
1865- filtered_mcu_file = dirMCU / args .mcu
1866- filtered_family = get_mcu_family (filtered_mcu_file )
1857+ # if args.mcu:
1858+ # # Check input file exists
1859+ # if not ((dirMCU / args.mcu).is_file()):
1860+ # print("\n" + args.mcu + " file not found")
1861+ # print("\nCheck in " + dirMCU + " the correct name of this file")
1862+ # print("\nYou may use double quotes for file containing special characters")
1863+ # quit()
1864+ # # Get the family of the desired mcu file
1865+ # filtered_mcu_file = dirMCU / args.mcu
1866+ # filtered_family = get_mcu_family(filtered_mcu_file)
18671867if args .family :
18681868 filtered_family = args .family .upper ()
18691869# Get all xml files
@@ -1951,7 +1951,7 @@ def manage_repo():
19511951 xml_mcu .unlink ()
19521952 xml_gpio .unlink ()
19531953
1954- # Aggregating all genertaed files
1954+ # Aggregating all generated files
19551955print ("Aggregating all generated files..." )
19561956periperalpins_regex = re .compile (r"\S+\.xml" )
19571957variant_regex = re .compile (r"defined\(ARDUINO_GENERIC_[^\s&|]*\)" )
0 commit comments