Skip to content

Commit

Permalink
WIP: First partially working gpio.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-terrell committed Sep 15, 2020
1 parent c014589 commit 196a4a1
Show file tree
Hide file tree
Showing 4 changed files with 192 additions and 274 deletions.
2 changes: 1 addition & 1 deletion src/common/delay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use cortex_m::peripheral::syst::SystClkSource;
use cortex_m::peripheral::SYST;

use crate::time::Hertz;
use hal::blocking::delay::{DelayMs, DelayUs};
pub use embedded_hal::blocking::delay::{DelayMs, DelayUs};

/// System timer (SysTick) as a delay provider
pub struct Delay {
Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
pub mod common;
pub use common::*;

pub extern crate embedded_hal as hal;
pub extern crate embedded_hal;
pub use embedded_hal::digital::v2::*;

#[cfg(feature = "atsam4e16e")]
pub use atsam4e16e_pac as pac;
Expand Down
3 changes: 0 additions & 3 deletions src/prelude.rs

This file was deleted.

Loading

0 comments on commit 196a4a1

Please sign in to comment.