mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
allow this trait to be unused
it's not used in all configs but it's not a bad thing to have it around.
This commit is contained in:
parent
f1ee38cf6a
commit
90108f266e
1 changed files with 2 additions and 0 deletions
|
|
@ -2,12 +2,14 @@
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// A trait for serial like drivers which are byte-oriented sinks.
|
/// A trait for serial like drivers which are byte-oriented sinks.
|
||||||
|
#[allow(dead_code)]
|
||||||
pub trait SerialWrite {
|
pub trait SerialWrite {
|
||||||
/// Write a single byte.
|
/// Write a single byte.
|
||||||
fn putc(&mut self, b: u8);
|
fn putc(&mut self, b: u8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A trait for serial like drivers which allows reading from a source.
|
/// A trait for serial like drivers which allows reading from a source.
|
||||||
|
#[allow(dead_code)]
|
||||||
pub trait SerialRead {
|
pub trait SerialRead {
|
||||||
/// Read a single byte.
|
/// Read a single byte.
|
||||||
fn getc(&mut self) -> Option<u8>;
|
fn getc(&mut self) -> Option<u8>;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue