From 442709985fe3adfe9d2688167585ff37279d11b6 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 4 Jun 2021 21:45:59 +0200 Subject: eval-clock: set CW freq to 1000Hz --- sw/eval-clock-cw-tx/src/cw.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sw') diff --git a/sw/eval-clock-cw-tx/src/cw.rs b/sw/eval-clock-cw-tx/src/cw.rs index 045ef15..337a3ab 100644 --- a/sw/eval-clock-cw-tx/src/cw.rs +++ b/sw/eval-clock-cw-tx/src/cw.rs @@ -10,13 +10,15 @@ use stm32f1xx_hal::{ pwm, }; +const SIDETONE_FREQ : u32 = 1000; + pub struct CWPWM { channel : pwm::PwmChannel, } impl CWPWM { pub fn new(pa8: PA8>, tim1: timer::Timer, mapr: &mut MAPR) -> Self { - let pwm = tim1.pwm(pa8, mapr, 400.hz()); + let pwm = tim1.pwm(pa8, mapr, SIDETONE_FREQ.hz()); let mut channel = pwm.split(); channel.enable(); channel.set_duty(0); -- cgit v1.2.3