aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf/src/timer.rs
Commit message (Collapse)AuthorAgeFilesLines
* fix warningsUlf Lilleengen2024-01-251-2/+2
|
* feat: add basic support for nRF51 chips to embassy-nrfUlf Lilleengen2024-01-241-2/+14
|
* 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-6/+6
|
* Fixed Lifetimes in Events & TasksCameron2023-07-051-6/+6
|
* Make interrupt module more standard.Dario Nieuwenhuis2023-06-081-3/+2
| | | | | | | | | | | | - 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/timer: use low power counter mode.Dario Nieuwenhuis2023-05-261-1/+1
| | | | | The regular one permanently requests HFCLK, while the low power one only does so while counting, for 1 clock cycle. The regular mode is "deprecated" too.
* nrf/timer: make `cc()` borrows less strict.Dario Nieuwenhuis2023-04-111-2/+2
|
* common/peripheral: do not require mut in PeripheralRef clone_unchecked.Dario Nieuwenhuis2023-04-111-1/+1
|
* nrf/timer: remove awaitable.Dario Nieuwenhuis2023-03-061-124/+10
|
* nrf/timer: add support for counter mode.Dario Nieuwenhuis2023-03-041-5/+38
|
* nrf: docs.Dario Nieuwenhuis2023-02-011-5/+31
|
* Replace futures::future::poll_fn -> core::future::poll_fn.Dario Nieuwenhuis2022-09-221-1/+1
|
* split `embassy-util` into `embassy-futures`, `embassy-sync`.Dario Nieuwenhuis2022-08-221-3/+3
|
* Split embassy crate into embassy-executor, embassy-util.Dario Nieuwenhuis2022-07-291-3/+3
|
* nrf: replace PhantomData usages with PeripheralRef.Dario Nieuwenhuis2022-07-231-10/+18
|
* Rename Unborrowed -> PeripheralRef, Unborrow -> PeripheralDario Nieuwenhuis2022-07-231-10/+7
|
* Run rustfmt.Dario Nieuwenhuis2022-06-121-12/+4
|
* Add embassy-cortex-m crate.Dario Nieuwenhuis2022-06-121-3/+3
| | | | | | - 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`.
* - Interconnect is now PPI againDion Dokter2021-10-261-1/+1
| | | | | | | - Scary pointer math is now contained in the tasks and events - ppi now sets the tasks and events immediately and the struct is now zero-sized - StaticToOne is renamed to ZeroToOne - Used DPPI tasks and events now panic when enabled twice
* Another redo using the feedback.Dion Dokter2021-10-261-32/+6
| | | | | PPI is now split up into PPI and DPPI under the name 'interconnect'. The tasks and events are tracked and reset in the drop function.
* - Added _ppi and _dppi to distinguish between the new and the old peripheral.Dion Dokter2021-10-261-5/+30
| | | | | | - Removed ConfigurableChannel and added capacity numbers to the channels - Replaced the PPI api with a new one using the DPPI terminology (publish & subscribe) - Updated all tasks and event registers for DPPI
* embassy: Refactor module structure to remove kitchen-sink `util`.Dario Nieuwenhuis2021-09-111-4/+4
|
* removed type aliasesf_punk2021-09-021-10/+9
| | | | | NotAwaitable as default generic param added awaitable_timer example
* moved CC::wait to awaitable typestatef_punk2021-09-011-34/+34
|
* added typestate to nrf-Timerf_punk2021-09-011-7/+35
| | | | | useful for hooking up the PPI to an Event without needing interrupt tested with buffered_uart example on nRF52840-DK
* Rename embassy-extras to embassy-hal-commonDario Nieuwenhuis2021-07-291-1/+1
|
* Add `Send/Sync` bounds to `PeripheralState`Liam Murphy2021-07-241-1/+1
|
* Correctly unset bitsLiam Murphy2021-06-291-2/+2
|
* Write bits directly to intenset/clr + shortsLiam Murphy2021-06-291-147/+18
|
* Handle differences between PACsLiam Murphy2021-06-291-15/+7
|
* Don't include extended timer support on chips without itLiam Murphy2021-06-291-0/+84
|
* Fix `Cc::event_compare`Liam Murphy2021-06-291-1/+1
|
* Get rid of the TODO about variant names, stop the timer before setting ↵Liam Murphy2021-06-291-8/+12
| | | | BITMODE and set a default frequency.
* Fix `Cc::wait` never resolving and refactor some APIsLiam Murphy2021-06-291-56/+38
| | | | I think the interrupt was getting immediately re-triggered as soon as the handler exited, so I disabled the interrupt in the handler.
* Add an nRF Timer driverLiam Murphy2021-06-261-4/+373
| | | | Resolves #189
* nrf: add `Unborrow<Target = Self>` bound to all instance traitsDario Nieuwenhuis2021-05-171-1/+2
|
* nrf: add support for nrf52805, nrf52811, nrf52820Dario Nieuwenhuis2021-05-171-20/+14
|
* nrf: better macro naming.Dario Nieuwenhuis2021-03-291-7/+7
|
* nrf/timer: add instance traitsDario Nieuwenhuis2021-03-291-0/+43