@@ -1724,7 +1724,7 @@ def manage_repo():
17241724templates_dir = cur_dir / "templates"
17251725mcu_family_dir = ""
17261726filtered_family = ""
1727- filtered_mcu_file = ""
1727+ # filtered_mcu_file = ""
17281728periph_c_filename = "PeripheralPins.c"
17291729pinvar_h_filename = "PinNamesVar.h"
17301730config_filename = Path ("variant_config.json" )
@@ -1786,18 +1786,18 @@ def manage_repo():
17861786 help = "list available xml files description in database" ,
17871787 action = "store_true" ,
17881788)
1789- group .add_argument (
1790- "-m" ,
1791- "--mcu" ,
1792- metavar = "xml" ,
1793- help = textwrap .dedent (
1794- """\
1795- Generate all files for specified mcu xml file description in database.
1796- This xml file can contain non alpha characters in its name,
1797- you should call it with double quotes.
1798- """
1799- ),
1800- )
1789+ # group.add_argument(
1790+ # "-m",
1791+ # "--mcu",
1792+ # metavar="xml",
1793+ # help=textwrap.dedent(
1794+ # """\
1795+ # Generate all files for specified mcu xml file description in database.
1796+ # This xml file can contain non alpha characters in its name,
1797+ # you should call it with double quotes.
1798+ # """
1799+ # ),
1800+ # )
18011801
18021802group .add_argument (
18031803 "-f" ,
@@ -1862,16 +1862,16 @@ def manage_repo():
18621862 db_release = release_match .group (1 )
18631863print ("CubeMX DB release {}\n " .format (db_release ))
18641864
1865- if args .mcu :
1866- # Check input file exists
1867- if not ((dirMCU / args .mcu ).is_file ()):
1868- print ("\n " + args .mcu + " file not found" )
1869- print ("\n Check in " + dirMCU + " the correct name of this file" )
1870- print ("\n You may use double quotes for file containing special characters" )
1871- quit ()
1872- # Get the family of the desired mcu file
1873- filtered_mcu_file = dirMCU / args .mcu
1874- filtered_family = get_mcu_family (filtered_mcu_file )
1865+ # if args.mcu:
1866+ # # Check input file exists
1867+ # if not ((dirMCU / args.mcu).is_file()):
1868+ # print("\n" + args.mcu + " file not found")
1869+ # print("\nCheck in " + dirMCU + " the correct name of this file")
1870+ # print("\nYou may use double quotes for file containing special characters")
1871+ # quit()
1872+ # # Get the family of the desired mcu file
1873+ # filtered_mcu_file = dirMCU / args.mcu
1874+ # filtered_family = get_mcu_family(filtered_mcu_file)
18751875if args .family :
18761876 filtered_family = args .family .upper ()
18771877# Get all xml files
@@ -1961,7 +1961,7 @@ def manage_repo():
19611961 xml_mcu .unlink ()
19621962 xml_gpio .unlink ()
19631963
1964- # Aggregating all genertaed files
1964+ # Aggregating all generated files
19651965print ("Aggregating all generated files..." )
19661966periperalpins_regex = re .compile (r"\S+\.xml" )
19671967variant_regex = re .compile (r"defined\(ARDUINO_GENERIC_[^\s&|]*\)" )
0 commit comments