From: Andrey Miroshnikov Date: Thu, 13 Jan 2022 00:19:01 +0000 (+0000) Subject: Added a few TODOs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b00e6ae789a2ab495795aa9a21d8ca25867b0ff;p=pinmux.git Added a few TODOs --- diff --git a/src/spec/simple_gpio.py b/src/spec/simple_gpio.py index ac6089b..e69605a 100644 --- a/src/spec/simple_gpio.py +++ b/src/spec/simple_gpio.py @@ -118,6 +118,7 @@ def gpio_configure(dut, gpio, oe, output=0, bank_sel=0): print("Configuring CSR to {0:x}".format(csr_val)) yield from wb_write(dut.bus, gpio, csr_val) +# TODO: Return the configuration states def gpio_rd_csr(dut, gpio): csr_val = yield from wb_read(dut.bus, gpio) print("GPIO{0} | CSR: {1:x}".format(gpio, csr_val)) @@ -132,6 +133,7 @@ def gpio_rd_input(dut, gpio): def gpio_set_out(dut, gpio, output): yield from wb_write(dut.bus, gpio | (OADDR<