aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf/src/rtc.rs
Commit message (Collapse)AuthorAgeFilesLines
* nrf/rtc: erase instance genericDario Nieuwenhuis2025-09-281-29/+38
|
* code review changesRobin Mueller2025-09-221-11/+4
|
* add basic RTC driver for nRFRobin Mueller2025-09-221-0/+272
|
* time: replace dyn clock/alarm with a global Driver traitDario Nieuwenhuis2021-08-051-294/+0
|
* nrf: add `Unborrow<Target = Self>` bound to all instance traitsDario Nieuwenhuis2021-05-171-2/+2
|
* Use `critical_section` crateDario Nieuwenhuis2021-05-111-8/+9
|
* nrf: better macro naming.Dario Nieuwenhuis2021-03-291-4/+4
|
* nrf/rtc: update to new apiDario Nieuwenhuis2021-03-291-40/+46
|
* move most interrupt methods to InterruptExt extension trait. Fixes #35Dario Nieuwenhuis2021-03-011-0/+1
|
* interrupt: Split set_handler context.Dario Nieuwenhuis2021-02-261-7/+5
| | | | | | | | | | Since introducing the ctx pointer, the handler is now two words, so setting it can race with the interrupt firing. On race it's possible for the new handler to be alled with the old ctx pointer or viceversa. Rather than documenting this, it's better to split the function in two to make it obvious to the user that it's not atomic. The user can use a critical section, or disable/enable the interrupt to avoid races if this is a concern.
* Cleanup interrupt package naming. Fixes #40Dario Nieuwenhuis2021-02-261-5/+5
| | | | | | | | | The `interrupt` package previously tried to be drop-in compatible with the `interrupt` package from PACs. THis meant that there was both a PAC-style enum value `UARTE0` and an embassy-style owned `UARTE0Interrupt` type. This made things VERY confusing. This drops compatibility with the PAC, improving the names for embassy interrupts.
* Use Relaxed atomics with fence instead of SeqCstDario Nieuwenhuis2021-02-201-3/+4
|
* rtc: use SeqCst for periods.Dario Nieuwenhuis2021-02-151-2/+2
|
* SImplify rtc overflow handlingDario Nieuwenhuis2021-02-151-15/+36
|
* Get rid of some warningsThales Fragoso2021-02-131-2/+4
|
* Executor API V2.Dario Nieuwenhuis2021-02-021-6/+6
| | | | | - It's no longer possible to call run() reentrantly from within a task (soundness issue) - it's now possible to spawn Send tasks across threads (SendSpawner, #37)
* nrf/rtc: fix race when setting alarms too close to now.Dario Nieuwenhuis2021-01-131-11/+6
|
* nrf/rtc: use interrupt handler context for instance ptrDario Nieuwenhuis2021-01-131-29/+28
|
* Add "context" pointer to owned interrupt handlers.Dario Nieuwenhuis2021-01-041-2/+4
|
* Update RTC for owned irqsDario Nieuwenhuis2020-12-291-18/+18
|
* Fix build with all nrf chip modelsDario Nieuwenhuis2020-10-311-2/+2
|
* Fix rtc using multiple alarms at the same time.Dario Nieuwenhuis2020-09-261-13/+18
|
* Add Clock traitDario Nieuwenhuis2020-09-251-6/+10
|
* Add support for multi alarm to RTC.Dario Nieuwenhuis2020-09-251-27/+66
|
* Add Executor with timer queue, Timer, Instant, Duration, Alarm.Dario Nieuwenhuis2020-09-251-16/+19
|
* Add clock::Monotonic trait.Dario Nieuwenhuis2020-09-241-16/+18
|
* rtc: Add alarm callback.Dario Nieuwenhuis2020-09-241-10/+21
|
* Add 64-bit rtc driver with alarm support.Dario Nieuwenhuis2020-09-241-0/+204