Export ClockSource and WaveformGenerationMode for each timer

This commit is contained in:
Paul Daniel Faria 2020-08-17 21:36:07 -04:00 committed by Dylan McKay
parent 302095dca2
commit c11738600f
2 changed files with 12 additions and 4 deletions

View File

@ -1,7 +1,10 @@
//! Modules that can be implemented for specific cores.
pub use self::spi::HardwareSpi;
pub use self::timer::{Timer8, Timer8Setup, Timer16, Timer16Setup};
pub use self::timer::{
Timer8, Timer8Setup, ClockSource8, WaveformGenerationMode8,
Timer16, Timer16Setup, ClockSource16, WaveformGenerationMode16,
};
pub use self::usart::HardwareUsart;
mod spi;

View File

@ -1,6 +1,11 @@
pub use self::timer8::{Timer8, Timer8Setup};
pub use self::timer16::{Timer16, Timer16Setup};
pub use self::timer8::{
ClockSource as ClockSource8, Timer8, Timer8Setup,
WaveformGenerationMode as WaveformGenerationMode8,
};
pub use self::timer16::{
ClockSource as ClockSource16, Timer16, Timer16Setup,
WaveformGenerationMode as WaveformGenerationMode16,
};
mod timer8;
mod timer16;