Move the serial module into a 'legacy' module
This commit is contained in:
parent
ea1aef9b1a
commit
c5dac9d7c0
|
@ -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;
|
||||||
|
|
|
@ -14,10 +14,10 @@
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
pub use self::register::{Bitset, Mask, Register, RegisterValue};
|
pub use self::register::{Bitset, Mask, Register, RegisterValue};
|
||||||
pub use self::pin::Pin;
|
pub use self::pin::{DataDirection, Pin};
|
||||||
|
|
||||||
pub mod prelude;
|
pub mod prelude;
|
||||||
pub mod serial;
|
pub mod legacy;
|
||||||
pub mod cores;
|
pub mod cores;
|
||||||
pub mod modules;
|
pub mod modules;
|
||||||
|
|
||||||
|
@ -28,8 +28,3 @@ mod pin;
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub mod std_stub;
|
pub mod std_stub;
|
||||||
|
|
||||||
pub enum DataDirection {
|
|
||||||
Input,
|
|
||||||
Output,
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
use {DataDirection, Register};
|
use Register;
|
||||||
|
|
||||||
|
pub enum DataDirection {
|
||||||
|
Input,
|
||||||
|
Output,
|
||||||
|
}
|
||||||
|
|
||||||
/// An IO pin.
|
/// An IO pin.
|
||||||
pub trait Pin {
|
pub trait Pin {
|
||||||
|
|
Loading…
Reference in New Issue