Merge pull request #108 from embassy-rs/detect-iop-clock
Detect iop bus
This commit is contained in:
commit
cc3ea51778
@ -1044,7 +1044,9 @@ def parse_rcc_regs():
|
||||
y = yaml.load(yaml_file)
|
||||
|
||||
for (key, body) in y.items():
|
||||
if m := re.match('^fieldset/(A[PH]B\d?)[LH]?ENR\d?$', key):
|
||||
# Some chip families have a separate bus for GPIO so it's not attached to the AHB/APB
|
||||
# bus but an IOPORT bus. Use the IOP as the clock for these chips.
|
||||
if m := re.match('^fieldset/((A[PH]B\d?)|IOP)[LH]?ENR\d?$', key):
|
||||
reg = removeprefix(key, 'fieldset/')
|
||||
clock = m.group(1)
|
||||
for field in body['fields']:
|
||||
|
Loading…
x
Reference in New Issue
Block a user