aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf/src/pwm.rs
Commit message (Collapse)AuthorAgeFilesLines
* feat: improve nrf54 support using new nrf-pacUlf Lilleengen2025-10-281-19/+40
| | | | | | | | | | | | | * Update nrf-pac to version that modifies nrf52 register layout to match nrf54 to reduce the amount of cfg needed for nrf54 support. * Make the following peripherals available on nrf54: twim, twis, spim, spis, uart, buffered uarte, dppi, gpiote, pwm, saadc * Add examples tested on the nrf54 dk Some code is based on or copied from other pull requests, modified to match the new nrf-pac layout. Co-authored-by: Dmitry Tarnyagin <[email protected]>
* embassy_nrf::pwm: add config argument to SimplePwm constructorsMaarten de Vries2025-10-151-28/+90
|
* embassy_nrf::pwm: add channel idle level to configMaarten de Vries2025-10-151-50/+35
|
* embassy_nrf::pwm: allow setting all duty cycles of SimplePwm at onceMaarten de Vries2025-10-151-0/+16
|
* embassy_nrf::pwm: expose duty cycle polarity for SimplePwmMaarten de Vries2025-10-151-7/+85
|
* embassy_nrf::pwm: derive more traits for public structsMaarten de Vries2025-10-151-1/+12
|
* Rustfmt for edition 2024.Dario Nieuwenhuis2025-10-061-2/+2
|
* nrf/pwm: erase instance genericsDario Nieuwenhuis2025-09-281-87/+60
|
* Use from_bits in LoopCntnerwalt2025-08-141-1/+1
|
* embassy-nrf: fix PWM loop countJuergen Fitschen2025-07-021-3/+2
|
* Remove Peripheral trait, rename PeripheralRef->Peri.Dario Nieuwenhuis2025-03-271-98/+61
|
* nrf: add nrf54l base: gpio and time driver.Dario Nieuwenhuis2024-11-171-8/+8
|
* nrf/pwm: disconnect input.Dario Nieuwenhuis2024-11-041-1/+10
|
* nrf/pwm: fix bad pin assignment.Dario Nieuwenhuis2024-11-041-1/+1
|
* nrf: port to chiptool-based `nrf-pac`.Dario Nieuwenhuis2024-11-041-139/+126
|
* fixup! feat(pwm): allow specifying OutputDrive for PWM channelsGiona Imperatori2024-07-011-4/+4
|
* feat(pwm): allow specifying OutputDrive for PWM channelsGiona Imperatori2024-07-011-5/+53
|
* fix: typoCyril Marpaud2024-04-271-1/+1
|
* nrf: remove mod sealed.Dario Nieuwenhuis2024-04-051-10/+6
|
* nrf: Drop needless letPriit Laes2024-02-171-2/+2
|
* nrf: Remove useless borrowsPriit Laes2024-02-171-2/+2
|
* Do not wait when the pwm is disabledMartin Marmsoler2024-01-271-1/+3
| | | Reason: because in this case no seqend event is raised and therefore an infinity loop occurs
* implement retriving duty.Martin Marmsoler2024-01-271-0/+5
| | | Description: When disabling the pwm and enabling again, it is required to restart the sequence. If the previous duty is not known, it is not possible to turn on the pwm again
* add is_enabled() functionMartin Marmsoler2024-01-261-0/+7
|
* add documentationMartin Marmsoler2024-01-261-0/+1
|
* use constant for the pwm clockMartin Marmsoler2024-01-261-2/+3
| | | Description: So it can be used outside of the crate to calculate max duty
* Rename embassy-hal-common to embassy-hal-internal, document it's for ↵Dario Nieuwenhuis2023-07-281-1/+1
| | | | internal use only. (#1700)
* Removed unnecessary lifetime namingCameron2023-07-051-11/+11
|
* Make interrupt module more standard.Dario Nieuwenhuis2023-06-081-4/+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`.
* nrf: docs.Dario Nieuwenhuis2023-02-011-4/+18
|
* nrf: replace PhantomData usages with PeripheralRef.Dario Nieuwenhuis2022-07-231-5/+8
|
* Remove PeripheralRef::into_inner()Dario Nieuwenhuis2022-07-231-17/+43
|
* Rename Unborrowed -> PeripheralRef, Unborrow -> PeripheralDario Nieuwenhuis2022-07-231-56/+56
|
* WIP: Make unborrow safe to useGrant Miller2022-07-231-53/+39
|
* Run rustfmt.Dario Nieuwenhuis2022-06-121-62/+18
|
* 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`.
* nrf: remove OptionalPinDario Nieuwenhuis2022-02-121-50/+152
|
* Further API simplification for the single seq scenariohuntc2022-02-051-2/+2
|
* Forgot to expose the stop methodhuntc2022-02-041-0/+8
|
* Introduced the SingleSequencer and a more complex Sequencerhuntc2022-02-041-41/+72
|
* Expose PWMhuntc2022-02-041-2/+2
|
* Doco correctionhuntc2022-02-041-3/+3
|
* Introduces a Sequences structhuntc2022-02-041-131/+143
|
* Clarify why we need the mut bufferhuntc2022-02-041-0/+2
|
* Some more docohuntc2022-01-301-0/+3
|
* Revert "Own the sequence buffer"huntc2022-01-301-76/+32
| | | | This reverts commit 482389a6911d8d3505872e6ad03d5b0af565eaf9.
* Own the sequence bufferhuntc2022-01-291-32/+76
| | | | This approach owns the sequence buffers which, while introducing an extra move, it eliminates the need to guard the lifetime of the sequence buffer. Given ownership, the buffer will be retained until the PWM sequence task is stopped.
* Now permits sequences to be mutated subsequentlyhuntc2022-01-281-7/+17
|
* Doc tidyinghuntc2022-01-281-3/+1
|
* Make the sequence a little nicer to pass aroundhuntc2022-01-281-17/+29
|