Do not treat stm32g0-n specially

This commit is contained in:
Dario Nieuwenhuis 2021-04-20 02:54:24 +02:00
parent 6aafc6cbce
commit 8696b85c6c

View File

@ -45,9 +45,6 @@ def find_header(model):
# model = re.sub(a, b, model, flags=re.IGNORECASE)
model = model.lower()
# g0xx-n doesn't seem to have special headers...????
model = re.sub('^(stm32g0.*)-n$', '\\1', model)
# if it's in the map, just go
if r := header_map.get(model):
return r
@ -224,7 +221,7 @@ def parse_headers():
def chip_name_from_package_name(x):
name_map = [
('(STM32L1....).x([AX])', '\\1-\\2'),
('(STM32G0....).x(N)', '\\1-\\2'),
('(STM32G0....).xN', '\\1'),
('(STM32F412..).xP', '\\1'),
('(STM32L4....).xP', '\\1'),
('(STM32WB....).x[AE]', '\\1'),
@ -292,10 +289,6 @@ def parse_chips():
if pname in FAKE_PERIPHERALS: continue
peris[pname] = pkind
with open('chip_names.yaml', 'w') as f:
f.write(yaml.dump(list(chips.keys())))
for chip_name, chip in chips.items():
h = find_header(chip_name)
if h is None: