2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-26 03:38:25 +08:00

kasli_generic: expose peripheral_processors dictionary. Closes #1403

This commit is contained in:
Sebastien Bourdeauducq 2019-12-10 10:30:06 +08:00
parent 6f52540569
commit 52112d54f9

View File

@ -99,7 +99,6 @@ def peripheral_grabber(module, peripheral):
eem.Grabber.add_std(module, port, port_aux, port_aux2) eem.Grabber.add_std(module, port, port_aux, port_aux2)
def add_peripherals(module, peripherals):
peripheral_processors = { peripheral_processors = {
"dio": peripheral_dio, "dio": peripheral_dio,
"urukul": peripheral_urukul, "urukul": peripheral_urukul,
@ -109,6 +108,9 @@ def add_peripherals(module, peripherals):
"zotino": peripheral_zotino, "zotino": peripheral_zotino,
"grabber": peripheral_grabber, "grabber": peripheral_grabber,
} }
def add_peripherals(module, peripherals):
for peripheral in peripherals: for peripheral in peripherals:
peripheral_processors[peripheral["type"]](module, peripheral) peripheral_processors[peripheral["type"]](module, peripheral)