@@ -1724,7 +1724,7 @@ def manage_repo():
1724
1724
templates_dir = cur_dir / "templates"
1725
1725
mcu_family_dir = ""
1726
1726
filtered_family = ""
1727
- filtered_mcu_file = ""
1727
+ # filtered_mcu_file = ""
1728
1728
periph_c_filename = "PeripheralPins.c"
1729
1729
pinvar_h_filename = "PinNamesVar.h"
1730
1730
config_filename = Path ("variant_config.json" )
@@ -1786,18 +1786,18 @@ def manage_repo():
1786
1786
help = "list available xml files description in database" ,
1787
1787
action = "store_true" ,
1788
1788
)
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
+ # )
1801
1801
1802
1802
group .add_argument (
1803
1803
"-f" ,
@@ -1862,16 +1862,16 @@ def manage_repo():
1862
1862
db_release = release_match .group (1 )
1863
1863
print ("CubeMX DB release {}\n " .format (db_release ))
1864
1864
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)
1875
1875
if args .family :
1876
1876
filtered_family = args .family .upper ()
1877
1877
# Get all xml files
@@ -1961,7 +1961,7 @@ def manage_repo():
1961
1961
xml_mcu .unlink ()
1962
1962
xml_gpio .unlink ()
1963
1963
1964
- # Aggregating all genertaed files
1964
+ # Aggregating all generated files
1965
1965
print ("Aggregating all generated files..." )
1966
1966
periperalpins_regex = re .compile (r"\S+\.xml" )
1967
1967
variant_regex = re .compile (r"defined\(ARDUINO_GENERIC_[^\s&|]*\)" )
0 commit comments