diff --git a/device-support/src/peripherals/mod.rs b/device-support/src/peripherals/mod.rs index e69de29b..1227065c 100644 --- a/device-support/src/peripherals/mod.rs +++ b/device-support/src/peripherals/mod.rs @@ -0,0 +1 @@ +pub mod timer; diff --git a/device-support/src/peripherals/timer.rs b/device-support/src/peripherals/timer.rs new file mode 100644 index 00000000..99eb6ce6 --- /dev/null +++ b/device-support/src/peripherals/timer.rs @@ -0,0 +1,228 @@ +use lc3_traits::peripherals::timers::*; +extern crate embedded_hal; +use embedded_hal as hal; +use embedded_hal::timer::*;//{Channel, OneShot}; +use core::marker::PhantomData; +use core::cell::RefCell; +use core::sync::atomic::AtomicBool; + + +// // +// pub enum TimerType +// where T: CountDown