From c11738600f7f37f6287ceff267dc07727c5d5d08 Mon Sep 17 00:00:00 2001 From: Paul Daniel Faria Date: Mon, 17 Aug 2020 21:36:07 -0400 Subject: [PATCH] Export ClockSource and WaveformGenerationMode for each timer --- src/modules/mod.rs | 5 ++++- src/modules/timer/mod.rs | 11 ++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/modules/mod.rs b/src/modules/mod.rs index 371c7ac..ef5f6ee 100644 --- a/src/modules/mod.rs +++ b/src/modules/mod.rs @@ -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; diff --git a/src/modules/timer/mod.rs b/src/modules/timer/mod.rs index 11c28c6..8cdacc9 100644 --- a/src/modules/timer/mod.rs +++ b/src/modules/timer/mod.rs @@ -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; -