mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-27 04:10:25 +00:00
Fixed timer config on STM32WBA pwm example
This commit is contained in:
parent
982117f5b0
commit
05f1c75f8b
@ -44,8 +44,8 @@ async fn main(_spawner: Spawner) {
|
||||
|
||||
let p = embassy_stm32::init(config);
|
||||
|
||||
let ch1_pin = PwmPin::new(p.PA2, OutputType::PushPull);
|
||||
let mut pwm = SimplePwm::new(p.TIM3, Some(ch1_pin), None, None, None, khz(10), Default::default());
|
||||
let ch1_pin = PwmPin::new(p.PB8, OutputType::PushPull);
|
||||
let mut pwm = SimplePwm::new(p.TIM1, Some(ch1_pin), None, None, None, khz(10), Default::default());
|
||||
let mut ch1 = pwm.ch1();
|
||||
ch1.enable();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user