fix: import ring buffer after fix Cargo.toml of ring-buffer crate
This commit is contained in:
parent
c77d02a7f7
commit
3d11f1382e
|
@ -15,8 +15,8 @@ rev = "3e362624547462928a219c40f9ea8e3a64f21e5f"
|
||||||
git = "https://gitea.doryan04.ru/TheEmbeddedRust/static-pins"
|
git = "https://gitea.doryan04.ru/TheEmbeddedRust/static-pins"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
ring-buf = ["ring-buffer"]
|
|
||||||
sparkfun-promicro = ["arduino-hal/sparkfun-promicro", "static-pins/sparkfun-promicro"]
|
sparkfun-promicro = ["arduino-hal/sparkfun-promicro", "static-pins/sparkfun-promicro"]
|
||||||
|
ring-buf = ["ring-buffer"]
|
||||||
|
|
||||||
[dependencies.avr-device]
|
[dependencies.avr-device]
|
||||||
version = "0.5.4"
|
version = "0.5.4"
|
||||||
|
|
|
@ -16,8 +16,6 @@ use static_pins::StaticPinOps;
|
||||||
|
|
||||||
mod structures;
|
mod structures;
|
||||||
|
|
||||||
pub use structures::ring_buffer::*;
|
|
||||||
|
|
||||||
pub type PollResult = Result<(), PollError>;
|
pub type PollResult = Result<(), PollError>;
|
||||||
pub type ReadByteResult = Result<u8, CorruptedData>;
|
pub type ReadByteResult = Result<u8, CorruptedData>;
|
||||||
pub type CorruptedData = (u8, u8);
|
pub type CorruptedData = (u8, u8);
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
// Youtube: https://www.youtube.com/watch?v=uIJnATS9j_0
|
// Youtube: https://www.youtube.com/watch?v=uIJnATS9j_0
|
||||||
|
|
||||||
use arduino_hal::port::PinOps;
|
use arduino_hal::port::PinOps;
|
||||||
|
use ring_buffer::RingBuffer;
|
||||||
use static_pins::StaticPinOps;
|
use static_pins::StaticPinOps;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
|
|
Loading…
Reference in New Issue