Add H7 RCC
This commit is contained in:
parent
d810bb0f75
commit
4199b328ee
5239
data/registers/rcc_h7.yaml
Normal file
5239
data/registers/rcc_h7.yaml
Normal file
File diff suppressed because it is too large
Load Diff
7
parse.py
7
parse.py
@ -240,6 +240,7 @@ perimap = [
|
||||
('STM32H7.*:SYS:.*', 'syscfg_h7/SYSCFG'),
|
||||
('STM32L0.*:RCC:.*', 'rcc_l0/RCC'),
|
||||
('.*SDMMC:sdmmc2_v1_0', 'sdmmc_v2/SDMMC'),
|
||||
('.*:STM32H7_rcc_v1_0', 'rcc_h7/RCC'),
|
||||
]
|
||||
|
||||
|
||||
@ -330,7 +331,7 @@ def parse_chips():
|
||||
'flash': flash,
|
||||
'ram': ram,
|
||||
'gpio_af': gpio_af,
|
||||
'rcc': rcc, # temporarily stashing it here
|
||||
'rcc': rcc, # temporarily stashing it here
|
||||
'packages': [],
|
||||
'peripherals': {},
|
||||
# 'peripherals': peris,
|
||||
@ -379,7 +380,7 @@ def parse_chips():
|
||||
|
||||
if pname in clocks[rcc]:
|
||||
p['clock'] = clocks[rcc][pname]
|
||||
#else:
|
||||
# else:
|
||||
#print( f'peri {pname} -> no clock')
|
||||
|
||||
if block := match_peri(chip_name+':'+pname+':'+pkind):
|
||||
@ -468,8 +469,10 @@ def parse_gpio_af():
|
||||
with open('data/gpio_af/'+ff+'.yaml', 'w') as f:
|
||||
f.write(yaml.dump(pins))
|
||||
|
||||
|
||||
clocks = {}
|
||||
|
||||
|
||||
def parse_clocks():
|
||||
for f in glob('sources/cubedb/mcu/IP/RCC-*rcc_v1_0_Modes.xml'):
|
||||
ff = removeprefix(f, 'sources/cubedb/mcu/IP/RCC-')
|
||||
|
Loading…
x
Reference in New Issue
Block a user