aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/pwm
Commit message (Collapse)AuthorAgeFilesLines
* stm32/timer: merge pwm module into timer. (#1703)Dario Nieuwenhuis2023-07-283-626/+0
| | | | The traits there are applicable to timer use cases other than PWM. It doesn't make sense to keep them separated.
* Rename embassy-hal-common to embassy-hal-internal, document it's for ↵Dario Nieuwenhuis2023-07-282-2/+2
| | | | internal use only. (#1700)
* Update stm32-metapac, includes chiptool changes to use real Rust enums now.Dario Nieuwenhuis2023-06-291-1/+1
|
* stm32: update stm32-metapac.Dario Nieuwenhuis2023-06-193-77/+63
|
* Fix tests.Dario Nieuwenhuis2023-05-291-7/+7
|
* stm32/pwm: improve dead-time apixoviat2023-05-011-5/+139
|
* stm32/pwm: add complementary pwm examplexoviat2023-04-051-1/+1
|
* stm32/pwm: cleanup and fix complementary pwmxoviat2023-04-052-34/+31
|
* stm32/pwm: add complementary pwmxoviat2023-04-042-0/+167
|
* rename PwmPin::new_chX, update examples.Dario Nieuwenhuis2022-07-231-10/+10
|
* embassy-stm32/pwm: Generalize channel selectionBen Gamari2022-07-231-57/+43
| | | | | | | 550da471be7b56927b50b5955a6de0916ebe6b1f previously refactored the STM32 PWM logic in such a way to preclude use of non-contiguous channels (e.g. channel 2 but not channel 1). Refactor it yet again to yet again allow this sort of usage.
* Rename Unborrowed -> PeripheralRef, Unborrow -> PeripheralDario Nieuwenhuis2022-07-231-20/+20
|
* Update embassy-stm32Dario Nieuwenhuis2022-07-231-9/+3
|
* Revert "Make advanced timer trait not require general purpose timer trait as ↵chemicstry2022-07-121-2/+2
| | | | | | the timers are too different." This reverts commit 4988dfe98175f5d92d896edd2b9ee774a91b28d5.
* embassy-stm32: Simplify timeGrant Miller2022-07-101-10/+10
| | | | | | | | | | - Remove unused `MilliSeconds`, `MicroSeconds`, and `NanoSeconds` types - Remove `Bps`, `KiloHertz`, and `MegaHertz` types that were only used for converting to `Hertz` - Replace all instances of `impl Into<Hertz>` with `Hertz` - Add `hz`, `khz`, and `mhz` methods to `Hertz`, as well as free function shortcuts - Remove `U32Ext` extension trait
* Fix PWM for advanced timerschemicstry2022-06-232-32/+14
|
* Run rustfmt.Dario Nieuwenhuis2022-06-122-21/+7
|
* Add embassy-cortex-m crate.Dario Nieuwenhuis2022-06-121-1/+1
| | | | | | - Move Interrupt and InterruptExecutor from `embassy` to `embassy-cortex-m`. - Move Unborrow from `embassy` to `embassy-hal-common` (nothing in `embassy` requires it anymore) - Move PeripheralMutex from `embassy-hal-common` to `embassy-cortex-m`.
* stm32: Register access for timers now doesn't require selfMatous Hybl2022-02-281-16/+16
|
* stm32: move macrotables to embassy-stm32 build.rsDario Nieuwenhuis2022-02-261-1/+1
|
* stm32: move pin trait impls from macrotables to build.rsDario Nieuwenhuis2022-02-231-48/+0
|
* stm32: Add standard crate-wide macros for pin/dma traits, switch all drivers ↵Dario Nieuwenhuis2022-02-103-186/+77
| | | | to use them.
* stm32: Remove OptionalPinDario Nieuwenhuis2022-02-103-74/+85
| | | | | | | | | The idea behind OptionalPin has a few problems: - you need to impl the signal traits for NoPin which is a bit weird https://github.com/embassy-rs/embassy/blob/master/embassy-stm32/src/dcmi.rs#L413-L416 - you can pass any combination of set/unset pins, which needs checking at runtime https://github.com/embassy-rs/embassy/blob/master/embassy-stm32/src/dcmi.rs#L130 The replacement is to do multiple `new` constructors for each combination of pins you want to take.
* Make advanced timer trait not require general purpose timer trait as the ↵Matous Hybl2022-01-181-6/+67
| | | | timers are too different.
* Add simple PWM, add PWM pin definitions also accessible from low-level API.Matous Hybl2022-01-133-144/+428
|
* stm32/pwm: allow using the advanced timer instances too.Dario Nieuwenhuis2021-11-271-1/+1
|
* stm32/pwm: small cleanupsDario Nieuwenhuis2021-11-271-6/+2
|
* stm32/pwm: impl instance/pin for all chipsDario Nieuwenhuis2021-11-271-14/+18
|
* stm32/pwm: initial commitBen Gamari2021-11-271-0/+195