From d6b2321feee3195a5f087c4f2f55e950add55eb4 Mon Sep 17 00:00:00 2001 From: Astro Date: Sat, 29 Jun 2019 00:00:22 +0200 Subject: [PATCH] eth: fix mio_pin setup --- src/eth/mod.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/eth/mod.rs b/src/eth/mod.rs index f24a4e09..1249bd14 100644 --- a/src/eth/mod.rs +++ b/src/eth/mod.rs @@ -39,6 +39,7 @@ impl Eth<(), ()> { slcr.mio_pin_16.write( slcr::MioPin16::zeroed() .l0_sel(true) + .speed(true) .io_type(slcr::IoBufferType::Hstl) .pullup(true) .disable_rcvr(true) @@ -47,6 +48,7 @@ impl Eth<(), ()> { slcr.mio_pin_21.write( slcr::MioPin21::zeroed() .l0_sel(true) + .speed(true) .io_type(slcr::IoBufferType::Hstl) .pullup(true) .disable_rcvr(true) @@ -55,6 +57,7 @@ impl Eth<(), ()> { slcr.mio_pin_20.write( slcr::MioPin20::zeroed() .l0_sel(true) + .speed(true) .io_type(slcr::IoBufferType::Hstl) .pullup(true) .disable_rcvr(true) @@ -62,6 +65,8 @@ impl Eth<(), ()> { // TXD2 slcr.mio_pin_19.write( slcr::MioPin19::zeroed() + .l0_sel(true) + .speed(true) .io_type(slcr::IoBufferType::Hstl) .pullup(true) .disable_rcvr(true) @@ -69,6 +74,8 @@ impl Eth<(), ()> { // TXD1 slcr.mio_pin_18.write( slcr::MioPin18::zeroed() + .l0_sel(true) + .speed(true) .io_type(slcr::IoBufferType::Hstl) .pullup(true) .disable_rcvr(true) @@ -77,6 +84,7 @@ impl Eth<(), ()> { slcr.mio_pin_17.write( slcr::MioPin17::zeroed() .l0_sel(true) + .speed(true) .io_type(slcr::IoBufferType::Hstl) .pullup(true) .disable_rcvr(true)