forked from renet/ENC424J600
Compare commits
4 Commits
master
...
feature/bo
Author | SHA1 | Date |
---|---|---|
occheung | 9d3d73479a | |
occheung | bcb3eef8cd | |
occheung | 500c855d00 | |
occheung | 1a2c22cfb2 |
|
@ -5,9 +5,8 @@ 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://git.m-labs.hk/M-Labs/ENC424J600"
|
||||
repository = "https://github.com/smoltcp-rs/ENC424J600"
|
||||
edition = "2018"
|
||||
license = "BSD-2-Clause"
|
||||
|
||||
[dependencies]
|
||||
volatile-register = "0.2"
|
||||
|
|
|
@ -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(4_u32);
|
||||
cortex_m::asm::delay(5_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(4_u32);
|
||||
cortex_m::asm::delay(5_u32);
|
||||
Err(SpiPortError::TransferError)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue