aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/timer
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #2410 from eZioPan/waveform-on-CHxDario Nieuwenhuis2024-02-013-12/+124
|\ | | | | | | impl waveform with TIM OC Channel DMA
| * bug fixeZio Pan2024-01-081-1/+2
| |
| * refactor with clippyeZio Pan2024-01-063-11/+9
| |
| * impl waveform with TIM ChanneleZio Pan2024-01-062-1/+114
| |
* | stm32/simple_pwm: add set_output_compare_modeRalf2024-01-101-0/+5
|/
* stm32/pwm: simplify impl blocks.Dario Nieuwenhuis2024-01-021-2/+0
|
* stm32/timer: add missing supertrait bounds.Dario Nieuwenhuis2024-01-021-4/+7
|
* ask a DMA Channel only when use .gen_waveform()eZio Pan2024-01-021-50/+28
|
* some trivial fixeZio Pan2023-12-301-9/+8
| | | | use less #[cfg] macro; reuse same variable
* record&restore TIM OC to it's earlier stateeZio Pan2023-12-292-15/+60
|
* implement PWM waveform generating with DMAeZio Pan2023-12-282-16/+102
|
* stm32/timer: docs.Dario Nieuwenhuis2023-12-194-47/+210
|
* stm32: more docs.Dario Nieuwenhuis2023-12-184-0/+9
|
* after stm32-metapac update, TIM CR1 ARPE enum to booleZio Pan2023-12-141-1/+1
|
* stm32/timer: Fix frequency off-by-oneGrant Miller2023-12-011-1/+4
|
* Merge branch 'master' into center-alignDion Dokter2023-10-204-11/+122
|\
| * STM32: timer enable_output does not take bool, but just enables the outputRalf2023-10-133-6/+6
| |
| * STM32: Fix regression in advanced timer to enable output of PWM signal by ↵Ralf2023-10-131-3/+11
| | | | | | | | partly reverting commit 74eb519
| * enable clock firstpbert2023-10-123-3/+3
| |
| * STM32: combine RccPeripherals reset() and enable() to reset_and_enable()pbert2023-10-123-6/+3
| |
| * Implemented Pwm trait for complementary pwm from embedded_halrandi2023-10-071-0/+40
| |
| * Implemented Pwm trait from embedded_halrandi2023-10-072-0/+66
| |
* | Invert assertDion Dokter2023-10-201-1/+1
| |
* | Added clarifying commentDion Dokter2023-10-021-4/+7
| |
* | Do affect the frequencyDion Dokter2023-10-023-7/+52
| |
* | stm32: Add the ability to center-align timersDion Dokter2023-10-013-6/+55
|/
* rustfmtxoviat2023-09-301-1/+1
|
* Fix clippy error exposed by moving out of macrosDaniel Berlin2023-09-301-1/+1
|
* Remove unused importsDaniel Berlin2023-09-301-2/+0
|
* Move one more method out of macrosDaniel Berlin2023-09-301-19/+17
|
* Move trait impls out of macrosDaniel Berlin2023-09-301-346/+143
|
* Fix small formatting issueDaniel Berlin2023-09-301-0/+1
|
* Fix trait inconsistency between sealed traits and implementationsDaniel Berlin2023-09-301-95/+1
|
* Revert "Forgot set_count_direction and set_clock_division in 32 bit instance"Daniel Berlin2023-09-281-12/+0
|
* Forgot set_count_direction and set_clock_division in 32 bit instanceDaniel Berlin2023-09-281-0/+12
|
* Add support for STM32 input capture filterDaniel Berlin2023-09-281-0/+28
|
* Add support for input capture functionDaniel Berlin2023-09-271-0/+231
|
* stm32/qei: fix struct naming (#1852)xoviat2023-09-021-2/+2
| | | Co-authored-by: xoviat <[email protected]>
* Merge pull request #1845 from xoviat/qeixoviat2023-08-302-0/+97
|\ | | | | | | stm32: add qei
| * stm32: implement qeixoviat2023-08-302-122/+77
| |
| * add qei draftxoviat2023-08-291-0/+142
| |
* | Stm32 timer prevent hardfaultDion Dokter2023-08-301-0/+2
|/
* stm32: allow setting the PWM output polarityAurelien Jacobs2023-08-183-0/+58
|
* stm32: allow setting PWM duty cycle to 100%Aurélien Jacobs2023-08-182-4/+4
| | | | | | | | Setting the compare_value to max_compare_value make the PWM output go low when the timer reach the max_compare_value and go high again on the next timer clock, when the value roll back to 0. So to allow a 100% PWM that never goes low, the compare_value must be set to max_compare_value + 1.
* embassy-stm32: Misc clippy fixesGrant Miller2023-08-061-3/+2
|
* stm32/pwm: add output type controlxoviat2023-07-292-11/+11
|
* stm32/timer: merge pwm module into timer. (#1703)Dario Nieuwenhuis2023-07-283-25/+603
| | | | The traits there are applicable to timer use cases other than PWM. It doesn't make sense to keep them separated.
* stm32: update stm32-metapac.Dario Nieuwenhuis2023-06-191-39/+25
|
* Make interrupt module more standard.Dario Nieuwenhuis2023-06-081-3/+3
| | | | | | | | | | | | - Move typelevel interrupts to a special-purpose mod: `embassy_xx::interrupt::typelevel`. - Reexport the PAC interrupt enum in `embassy_xx::interrupt`. This has a few advantages: - The `embassy_xx::interrupt` module is now more "standard". - It works with `cortex-m` functions for manipulating interrupts, for example. - It works with RTIC. - the interrupt enum allows holding value that can be "any interrupt at runtime", this can't be done with typelevel irqs. - When "const-generics on enums" is stable, we can remove the typelevel interrupts without disruptive changes to `embassy_xx::interrupt`.
* Revert "Make advanced timer trait not require general purpose timer trait as ↵chemicstry2022-07-121-1/+11
| | | | | | the timers are too different." This reverts commit 4988dfe98175f5d92d896edd2b9ee774a91b28d5.