Skip to content

Commit 0c48e1b

Browse files
authored
Rust 2018 edition (#3)
1 parent 5b99b41 commit 0c48e1b

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ description = "HAL for the LPC11Uxx family of µ-controllers"
1010
keywords = ["arm", "cortex-m", "lpc11", "hal"]
1111
license = "MIT OR Apache-2.0"
1212
repository = "https://github.com/coredump-ch/lpc11uxx-hal-rs"
13+
edition = "2018"
1314

1415
[dependencies]
1516
lpc11uxx = "0.3"

src/delay.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
use hal::blocking::delay::{DelayMs, DelayUs};
2-
3-
use lpc11uxx::SYST;
41
use cortex_m::peripheral::syst::SystClkSource;
2+
use embedded_hal::blocking::delay::{DelayMs, DelayUs};
3+
use lpc11uxx::SYST;
4+
55

66
pub struct Delay {
77
syst: SYST,

src/lib.rs

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
1+
//! [Hardware Abstraction Layer](https://crates.io/crates/embedded-hal) (HAL)
2+
//! for NXP LPC11UXX family of µ-controllers.
13
#![no_std]
24

3-
pub extern crate lpc11uxx;
4-
extern crate embedded_hal as hal;
5-
extern crate cortex_m;
5+
pub use lpc11uxx;
66

77
pub mod delay;
8-
9-
#[cfg(test)]
10-
mod tests {
11-
#[test]
12-
fn it_works() {
13-
assert_eq!(2 + 2, 4);
14-
}
15-
}

0 commit comments

Comments
 (0)