@@ -1668,7 +1668,7 @@ def manage_repo():
1668
1668
templates_dir = cur_dir / "templates"
1669
1669
mcu_family_dir = ""
1670
1670
filtered_family = ""
1671
- filtered_mcu_file = ""
1671
+ # filtered_mcu_file = ""
1672
1672
periph_c_filename = "PeripheralPins.c"
1673
1673
pinvar_h_filename = "PinNamesVar.h"
1674
1674
config_filename = Path ("variant_config.json" )
@@ -1730,18 +1730,18 @@ def manage_repo():
1730
1730
help = "list available xml files description in database" ,
1731
1731
action = "store_true" ,
1732
1732
)
1733
- group .add_argument (
1734
- "-m" ,
1735
- "--mcu" ,
1736
- metavar = "xml" ,
1737
- help = textwrap .dedent (
1738
- """\
1739
- Generate all files for specified mcu xml file description in database.
1740
- This xml file can contain non alpha characters in its name,
1741
- you should call it with double quotes.
1742
- """
1743
- ),
1744
- )
1733
+ # group.add_argument(
1734
+ # "-m",
1735
+ # "--mcu",
1736
+ # metavar="xml",
1737
+ # help=textwrap.dedent(
1738
+ # """\
1739
+ # Generate all files for specified mcu xml file description in database.
1740
+ # This xml file can contain non alpha characters in its name,
1741
+ # you should call it with double quotes.
1742
+ # """
1743
+ # ),
1744
+ # )
1745
1745
1746
1746
group .add_argument (
1747
1747
"-f" ,
@@ -1806,16 +1806,16 @@ def manage_repo():
1806
1806
db_release = release_match .group (1 )
1807
1807
print ("CubeMX DB release {}\n " .format (db_release ))
1808
1808
1809
- if args .mcu :
1810
- # Check input file exists
1811
- if not ((dirMCU / args .mcu ).is_file ()):
1812
- print ("\n " + args .mcu + " file not found" )
1813
- print ("\n Check in " + dirMCU + " the correct name of this file" )
1814
- print ("\n You may use double quotes for file containing special characters" )
1815
- quit ()
1816
- # Get the family of the desired mcu file
1817
- filtered_mcu_file = dirMCU / args .mcu
1818
- filtered_family = get_mcu_family (filtered_mcu_file )
1809
+ # if args.mcu:
1810
+ # # Check input file exists
1811
+ # if not ((dirMCU / args.mcu).is_file()):
1812
+ # print("\n" + args.mcu + " file not found")
1813
+ # print("\nCheck in " + dirMCU + " the correct name of this file")
1814
+ # print("\nYou may use double quotes for file containing special characters")
1815
+ # quit()
1816
+ # # Get the family of the desired mcu file
1817
+ # filtered_mcu_file = dirMCU / args.mcu
1818
+ # filtered_family = get_mcu_family(filtered_mcu_file)
1819
1819
if args .family :
1820
1820
filtered_family = args .family .upper ()
1821
1821
# Get all xml files
@@ -1903,7 +1903,7 @@ def manage_repo():
1903
1903
xml_mcu .unlink ()
1904
1904
xml_gpio .unlink ()
1905
1905
1906
- # Aggregating all genertaed files
1906
+ # Aggregating all generated files
1907
1907
print ("Aggregating all generated files..." )
1908
1908
periperalpins_regex = re .compile (r"\S+\.xml" )
1909
1909
variant_regex = re .compile (r"defined\(ARDUINO_GENERIC_[^\s&|]*\)" )
0 commit comments