Upgrade to rust 2018 edition

This commit is contained in:
Michael Watzko 2020-06-10 16:52:21 +02:00
commit 2e1aa239d2
2 changed files with 3 additions and 6 deletions

View file

@ -8,6 +8,7 @@ keywords = ["embedded", "w5500", "iot", "arm", "embedded-hal-driver"]
categories = ["embedded", "hardware-support", "no-std", "network-programming"]
license = "MIT OR Apache-2.0"
readme = "README.md"
edition = "2018"
[dependencies]
byteorder = { version = "1.3.2", default-features = false }

View file

@ -1,17 +1,13 @@
#![no_std]
#![deny(intra_doc_link_resolution_failure)]
extern crate byteorder;
extern crate embedded_hal as hal;
#[macro_use(block)]
extern crate nb;
use hal::digital::v2::OutputPin;
use hal::spi::FullDuplex;
use byteorder::BigEndian;
use byteorder::ByteOrder;
use embedded_hal::digital::v2::OutputPin;
use embedded_hal::spi::FullDuplex;
const COMMAND_READ: u8 = 0x00 << 2;
const COMMAND_WRITE: u8 = 0x01 << 2;