Timers use the clock speed apb1_tim and apb2_tim

This commit is contained in:
Nicolas Viennot 2022-03-14 21:46:32 -04:00
parent cf354c22e1
commit b3f9f3e286

View File

@ -1188,8 +1188,10 @@ def parse_rcc_regs():
if field['name'].endswith('EN'):
peri = removesuffix(field['name'], 'EN')
# Timers are a bit special, they may have a x2 freq
peri_clock = f'{clock}_TIM' if re.match('^TIM\d+$', peri) else clock
res = {
'clock': clock,
'clock': peri_clock,
'enable': {
'register': reg,
'field': field['name'],