19 Commits

Author SHA1 Message Date
Dario Nieuwenhuis
eda51673f5
Merge pull request #3704 from CNLHC/pwm_support_gp32
feat: Add 32-bit timer support for waveform function
2025-01-21 22:57:47 +00:00
elagil
eba8089601 chore: fix build 2025-01-03 18:18:00 +01:00
Liu Hancheng
90b4164426
dev: change name to bits 2025-01-02 12:51:47 +08:00
Liu Hancheng
e2c866119f doc: add doc for timer get_bits fn 2025-01-01 17:24:00 +08:00
Liu Hancheng
cbc7a9fe5b feat: Add 32-bit timer support for waveform function 2025-01-01 17:05:48 +08:00
Aurélien Jacobs
3402e76f98 stm32/timer: avoid max_compare_value >= u16::MAX
With STM32 32 bits timers, the max_compare_value (AKA, ARR register)
can currently be set greater than u16::MAX, which leads to the following
assert!(max < u16::MAX as u32) in max_duty_cycle() when setting up a 1 kHz
SimplePwm on 84 MHz MCU.

The issue is fixed by forcing a max_compare_value that fits into 16 bits
when setting the frequency for a PWM.
2024-11-20 16:21:20 +01:00
Grant Miller
f2646b29a6 Make clone_unchecked work 2024-09-21 07:52:54 -05:00
Grant Miller
df06c2bbfe wip: split by value 2024-09-07 11:17:13 -05:00
Dario Nieuwenhuis
ba940017ee
Merge pull request #3014 from brunob45/pwm_input
Add PWM Input for STM32
2024-05-31 18:09:27 +00:00
Bruno Bousquet
7d86919257 rust fmt really does not want blank space there 2024-05-30 17:54:49 -04:00
Bruno Bousquet
83b5797b8d fix fmt (again) 2024-05-30 17:53:38 -04:00
Bruno Bousquet
713d84f778 fix fmt 2024-05-30 17:51:48 -04:00
Bruno Bousquet
84707af5d7 create functions in inner to handle register modification 2024-05-30 17:43:53 -04:00
Bruno Bousquet
521332bdd1 pwm_input is working on F446 2024-05-29 00:28:26 -04:00
Jan Špaček
081afca3f0 stm32/rcc: replace generated enable/disable code with runtime info 2024-05-25 18:44:55 +02:00
Bruno Bousquet
29d6fa0a4a add get_input_interrupt 2024-05-05 23:00:48 -04:00
Jan Špaček
7b3939ca80 stm32/timer: add low_level::Timer::get_clock_frequency() 2024-05-04 19:44:03 +02:00
ftk
e7bfd7bac9 stm32 timer: fix 32bit timer off by 1 ARR error 2024-04-27 15:49:30 +03:00
Dario Nieuwenhuis
389cbc0a77 stm32/timer: simplify traits, convert from trait methods to struct. 2024-03-23 01:37:28 +01:00