aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf/src/time_driver.rs
Commit message (Collapse)AuthorAgeFilesLines
* fix: avoid hang if calling now() before syscounter is enabledUlf Lilleengen2025-12-181-0/+4
| | | | | | If the time driver now() is called before the syscounter is enabled on nrf54, it would hang. The fix checks if syscounter is enabled, and returns 0 if not.
* chore: cleanupUlf Lilleengen2025-11-261-8/+3
|
* feat: support nrf54 GRTC as time-driverUlf Lilleengen2025-11-261-34/+123
| | | | | | | * Refactor GRTC peripheral splitting it into multiple channels * Reserve channel 1 for time-driver if enabled * Implement time-driver using GRTC (RTC peripheral is now removed). * Add timer example to nrf54l15
* Rustfmt for edition 2024.Dario Nieuwenhuis2025-10-061-2/+2
|
* Relax timestamp checkUlf Lilleengen2025-01-021-1/+1
|
* Move safeguard if compare irq is enabledUlf Lilleengen2025-01-021-5/+6
|
* Update comment to reflect realityUlf Lilleengen2025-01-021-3/+3
|
* Fix case where a short interrupt caused wrong alarm setUlf Lilleengen2025-01-021-2/+2
|
* Ensure alarm is re-scheduled if timetamp is in the pastUlf Lilleengen2025-01-011-37/+43
| | | | Fixes #3672
* Rename ETQD, bump dateDániel Buga2024-12-221-1/+1
|
* Merge time-driver and time-queue-driver traits, make HALs own and handle the ↵Dario Nieuwenhuis2024-12-131-52/+63
| | | | queue.
* Refactor integrated-timersDániel Buga2024-12-101-78/+39
|
* Use inline const for initializing arrays. (#3567)Dario Nieuwenhuis2024-11-241-2/+1
|
* nrf: add nrf54l base: gpio and time driver.Dario Nieuwenhuis2024-11-171-2/+23
|
* Update nrf-pac.Dario Nieuwenhuis2024-11-151-1/+1
|
* nrf: port to chiptool-based `nrf-pac`.Dario Nieuwenhuis2024-11-041-23/+22
|
* nightly fmtUlf Lilleengen2024-01-251-1/+1
|
* modify time driver to not require portable-atomicUlf Lilleengen2024-01-241-11/+9
|
* rustfmt againUlf Lilleengen2024-01-241-1/+1
|
* feat: add basic support for nRF51 chips to embassy-nrfUlf Lilleengen2024-01-241-1/+1
|
* time: split driver into a separate embassy-time-driver crate.Dario Nieuwenhuis2024-01-111-2/+2
|
* Add `rt` feature to HALs, cfg out interrupt handling when not set.Dario Nieuwenhuis2023-06-081-0/+1
|
* 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`.
* cortex-m: remove owned interrupts.Dario Nieuwenhuis2023-06-011-4/+3
|
* Fix tests.Dario Nieuwenhuis2023-05-291-1/+1
|
* Address review feedbackivmarkov2022-10-241-7/+11
|
* Change time Driver contract to never fire the alarm synchronouslyivmarkov2022-10-241-8/+9
|
* split `embassy-util` into `embassy-futures`, `embassy-sync`.Dario Nieuwenhuis2022-08-221-2/+2
|
* Split embassy-time from embassy-executor.Dario Nieuwenhuis2022-08-181-2/+2
|
* Split embassy crate into embassy-executor, embassy-util.Dario Nieuwenhuis2022-07-291-4/+4
|
* Run rustfmt.Dario Nieuwenhuis2022-06-121-12/+10
|
* 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`.
* time: better docs explaining overflow handling.Dario Nieuwenhuis2022-02-231-18/+45
|
* blocking_mutex: refactor to work on stable. No GATs, and can be constructed ↵Dario Nieuwenhuis2022-02-121-1/+2
| | | | in const.
* embassy: Refactor module structure to remove kitchen-sink `util`.Dario Nieuwenhuis2021-09-111-1/+1
|
* time: allow storing state inside the driver struct.Dario Nieuwenhuis2021-08-251-37/+18
|
* nrf/time: allow configuring the rtc irq prioDario Nieuwenhuis2021-08-181-4/+6
|
* time_driver: use regular fn ptr -> raw ptr castsDario Nieuwenhuis2021-08-051-4/+1
|
* time: replace dyn clock/alarm with a global Driver traitDario Nieuwenhuis2021-08-051-0/+295