Move the serial module into a 'legacy' module

This commit is contained in:
Dylan McKay 2017-12-14 02:28:11 +13:00
parent ea1aef9b1a
commit c5dac9d7c0
4 changed files with 17 additions and 8 deletions

9
src/legacy/mod.rs Normal file
View File

@ -0,0 +1,9 @@
//! Legacy code.
//!
//! The code in here needs to be cleaned up and rewritten.
//!
//! Once a replacement exists, these legacy modules may be removed
//! in a major release!
pub mod serial;

View File

@ -14,10 +14,10 @@
#![no_std]
pub use self::register::{Bitset, Mask, Register, RegisterValue};
pub use self::pin::Pin;
pub use self::pin::{DataDirection, Pin};
pub mod prelude;
pub mod serial;
pub mod legacy;
pub mod cores;
pub mod modules;
@ -28,8 +28,3 @@ mod pin;
#[doc(hidden)]
pub mod std_stub;
pub enum DataDirection {
Input,
Output,
}

View File

@ -1,4 +1,9 @@
use {DataDirection, Register};
use Register;
pub enum DataDirection {
Input,
Output,
}
/// An IO pin.
pub trait Pin {