Compare commits

..

5 Commits

2 changed files with 4 additions and 3 deletions

View File

@ -5,8 +5,9 @@ description = "Embbeded Rust Ethernet driver for ENC424J600 Ethernet controller
authors = ["Harry Ho <hh@m-labs.hk>"]
version = "0.1.0"
keywords = ["ethernet", "eth", "enc424j600", "stm32", "stm32f4xx"]
repository = "https://github.com/smoltcp-rs/ENC424J600"
repository = "https://git.m-labs.hk/M-Labs/ENC424J600"
edition = "2018"
license = "BSD-2-Clause"
[dependencies]
volatile-register = "0.2"

View File

@ -133,7 +133,7 @@ impl <SPI: Transfer<u8>,
// Disable chip select
cortex_m::asm::delay(10_u32);
self.nss.set_high();
cortex_m::asm::delay(5_u32);
cortex_m::asm::delay(4_u32);
Ok(buf[2])
},
// TODO: Maybe too naive?
@ -141,7 +141,7 @@ impl <SPI: Transfer<u8>,
// Disable chip select
cortex_m::asm::delay(10_u32);
self.nss.set_high();
cortex_m::asm::delay(5_u32);
cortex_m::asm::delay(4_u32);
Err(SpiPortError::TransferError)
}
}