@@ -1716,7 +1716,7 @@ def manage_repo():
1716
1716
templates_dir = cur_dir / "templates"
1717
1717
mcu_family_dir = ""
1718
1718
filtered_family = ""
1719
- filtered_mcu_file = ""
1719
+ # filtered_mcu_file = ""
1720
1720
periph_c_filename = "PeripheralPins.c"
1721
1721
pinvar_h_filename = "PinNamesVar.h"
1722
1722
config_filename = Path ("variant_config.json" )
@@ -1778,18 +1778,18 @@ def manage_repo():
1778
1778
help = "list available xml files description in database" ,
1779
1779
action = "store_true" ,
1780
1780
)
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
+ # )
1793
1793
1794
1794
group .add_argument (
1795
1795
"-f" ,
@@ -1854,16 +1854,16 @@ def manage_repo():
1854
1854
db_release = release_match .group (1 )
1855
1855
print ("CubeMX DB release {}\n " .format (db_release ))
1856
1856
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)
1867
1867
if args .family :
1868
1868
filtered_family = args .family .upper ()
1869
1869
# Get all xml files
@@ -1951,7 +1951,7 @@ def manage_repo():
1951
1951
xml_mcu .unlink ()
1952
1952
xml_gpio .unlink ()
1953
1953
1954
- # Aggregating all genertaed files
1954
+ # Aggregating all generated files
1955
1955
print ("Aggregating all generated files..." )
1956
1956
periperalpins_regex = re .compile (r"\S+\.xml" )
1957
1957
variant_regex = re .compile (r"defined\(ARDUINO_GENERIC_[^\s&|]*\)" )
0 commit comments