From dffdb9268bfb32580efe32067bab50fe62900c5f Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Thu, 28 Sep 2023 21:56:18 -0400 Subject: [PATCH] Revert "Forgot set_count_direction and set_clock_division in 32 bit instance" --- embassy-stm32/src/timer/mod.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/embassy-stm32/src/timer/mod.rs b/embassy-stm32/src/timer/mod.rs index 9b79f9b4..1d642ed3 100644 --- a/embassy-stm32/src/timer/mod.rs +++ b/embassy-stm32/src/timer/mod.rs @@ -49,10 +49,6 @@ pub(crate) mod sealed { fn regs_gp32() -> crate::pac::timer::TimGp32; fn set_frequency(&mut self, frequency: Hertz); - - fn set_count_direction(&mut self, direction: vals::Dir); - - fn set_clock_division(&mut self, ckd: vals::Ckd); } pub trait AdvancedControlInstance: GeneralPurpose16bitInstance { @@ -321,14 +317,6 @@ macro_rules! impl_32bit_timer { crate::pac::$inst } - fn set_count_direction(&mut self, direction: vals::Dir) { - Self::regs_gp32().cr1().modify(|r| r.set_dir(direction)); - } - - fn set_clock_division(&mut self, ckd: vals::Ckd) { - Self::regs_gp32().cr1().modify(|r| r.set_ckd(ckd)); - } - fn set_frequency(&mut self, frequency: Hertz) { use core::convert::TryInto; let f = frequency.0;