From: Luke Kenneth Casson Leighton Date: Tue, 17 Jul 2018 11:51:21 +0000 (+0100) Subject: add i2c in connection X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3519e040d3d906cb1e7190b37acf55e5f11e22df;p=pinmux.git add i2c in connection --- diff --git a/src/bsv/bsv_lib/slow_peripherals.bsv b/src/bsv/bsv_lib/slow_peripherals.bsv index 80deed7..f3ea1f3 100644 --- a/src/bsv/bsv_lib/slow_peripherals.bsv +++ b/src/bsv/bsv_lib/slow_peripherals.bsv @@ -284,10 +284,16 @@ package slow_peripherals; pinmux.peripheral_side.twi_scl_out(i2c0.out.scl_out); pinmux.peripheral_side.twi_scl_outen(pack(i2c0.out.scl_out_en)); endrule + rule connect_i2c0_scl_in; + i2c0.out.scl_in(pinmux.peripheral_side.twi_scl_in); + endrule rule connect_i2c0_sda; pinmux.peripheral_side.twi_sda_out(i2c0.out.sda_out); pinmux.peripheral_side.twi_sda_outen(pack(i2c0.out.sda_out_en)); endrule + rule connect_i2c0_sda_in; + i2c0.out.sda_in(pinmux.peripheral_side.twi_sda_in); + endrule rule connect_uart1tx; pinmux.peripheral_side.uart_tx(uart1.coe_rs232.sout); endrule