Upgrade to rust 2018 edition
This commit is contained in:
parent
b09643c886
commit
2e1aa239d2
2 changed files with 3 additions and 6 deletions
|
|
@ -8,6 +8,7 @@ keywords = ["embedded", "w5500", "iot", "arm", "embedded-hal-driver"]
|
||||||
categories = ["embedded", "hardware-support", "no-std", "network-programming"]
|
categories = ["embedded", "hardware-support", "no-std", "network-programming"]
|
||||||
license = "MIT OR Apache-2.0"
|
license = "MIT OR Apache-2.0"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
byteorder = { version = "1.3.2", default-features = false }
|
byteorder = { version = "1.3.2", default-features = false }
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,13 @@
|
||||||
#![no_std]
|
#![no_std]
|
||||||
#![deny(intra_doc_link_resolution_failure)]
|
#![deny(intra_doc_link_resolution_failure)]
|
||||||
|
|
||||||
extern crate byteorder;
|
|
||||||
extern crate embedded_hal as hal;
|
|
||||||
|
|
||||||
#[macro_use(block)]
|
#[macro_use(block)]
|
||||||
extern crate nb;
|
extern crate nb;
|
||||||
|
|
||||||
use hal::digital::v2::OutputPin;
|
|
||||||
use hal::spi::FullDuplex;
|
|
||||||
|
|
||||||
use byteorder::BigEndian;
|
use byteorder::BigEndian;
|
||||||
use byteorder::ByteOrder;
|
use byteorder::ByteOrder;
|
||||||
|
use embedded_hal::digital::v2::OutputPin;
|
||||||
|
use embedded_hal::spi::FullDuplex;
|
||||||
|
|
||||||
const COMMAND_READ: u8 = 0x00 << 2;
|
const COMMAND_READ: u8 = 0x00 << 2;
|
||||||
const COMMAND_WRITE: u8 = 0x01 << 2;
|
const COMMAND_WRITE: u8 = 0x01 << 2;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue