Ulf Lilleengen
92d67c3ccd
Relax timestamp check
2025-01-02 13:35:55 +01:00
Ulf Lilleengen
422938745a
Move safeguard if compare irq is enabled
2025-01-02 12:53:55 +01:00
Ulf Lilleengen
06901c3279
Update comment to reflect reality
2025-01-02 12:03:03 +01:00
Ulf Lilleengen
9c7d508bcf
Fix case where a short interrupt caused wrong alarm set
2025-01-02 11:59:57 +01:00
Ulf Lilleengen
e012e13858
Ensure alarm is re-scheduled if timetamp is in the past
...
Fixes #3672
2025-01-01 19:47:39 +01:00
Dániel Buga
ab8ca3f126
Rename ETQD, bump date
2024-12-22 21:00:23 +01:00
Dario Nieuwenhuis
b268b1795f
Merge time-driver and time-queue-driver traits, make HALs own and handle the queue.
2024-12-13 21:20:59 +01:00
Dániel Buga
5a5495aac4
Refactor integrated-timers
2024-12-10 21:31:42 +01:00
Dario Nieuwenhuis
aaad8450e9
Use inline const for initializing arrays. ( #3567 )
2024-11-24 20:58:48 +01:00
Dario Nieuwenhuis
a8d7a5eb1e
nrf: add nrf54l base: gpio and time driver.
2024-11-17 14:42:06 +01:00
Dario Nieuwenhuis
3f23fd5c98
Update nrf-pac.
2024-11-15 02:22:20 +01:00
Dario Nieuwenhuis
51f6b813e1
nrf: port to chiptool-based nrf-pac.
2024-11-04 00:47:31 +01:00
Ulf Lilleengen
1263d28595
nightly fmt
2024-01-25 08:39:25 +01:00
Ulf Lilleengen
00d66cce1d
modify time driver to not require portable-atomic
2024-01-24 21:23:54 +01:00
Ulf Lilleengen
53ea850d28
rustfmt again
2024-01-24 21:23:54 +01:00
Ulf Lilleengen
4410aacafb
feat: add basic support for nRF51 chips to embassy-nrf
2024-01-24 21:23:54 +01:00
Dario Nieuwenhuis
15f94fb0fc
time: split driver into a separate embassy-time-driver crate.
2024-01-11 16:56:08 +01:00
Dario Nieuwenhuis
8c93805ab5
Add rt feature to HALs, cfg out interrupt handling when not set.
2023-06-08 18:57:03 +02:00
Dario Nieuwenhuis
921780e6bf
Make interrupt module more standard.
...
- 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`.
2023-06-08 18:00:48 +02:00
Dario Nieuwenhuis
404aa29289
cortex-m: remove owned interrupts.
2023-06-01 03:25:19 +02:00
Dario Nieuwenhuis
46961cfdf7
Fix tests.
2023-05-29 19:46:28 +02:00
ivmarkov
f78c706b89
Address review feedback
2022-10-24 11:10:59 +03:00
ivmarkov
4d5550070f
Change time Driver contract to never fire the alarm synchronously
2022-10-24 09:17:43 +03:00
Dario Nieuwenhuis
21072bee48
split embassy-util into embassy-futures, embassy-sync.
2022-08-22 22:18:13 +02:00
Dario Nieuwenhuis
5daa173ce4
Split embassy-time from embassy-executor.
2022-08-18 01:22:30 +02:00
Dario Nieuwenhuis
a0f1b0ee01
Split embassy crate into embassy-executor, embassy-util.
2022-07-29 23:40:36 +02:00
Dario Nieuwenhuis
a8703b7598
Run rustfmt.
2022-06-12 22:22:31 +02:00
Dario Nieuwenhuis
5085100df2
Add embassy-cortex-m crate.
...
- 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`.
2022-06-12 21:45:38 +02:00
Dario Nieuwenhuis
fdb6e66b4b
time: better docs explaining overflow handling.
2022-02-23 05:16:30 +01:00
Dario Nieuwenhuis
6c925b2342
blocking_mutex: refactor to work on stable. No GATs, and can be constructed in const.
2022-02-12 01:16:31 +01:00
Dario Nieuwenhuis
ead987245d
embassy: Refactor module structure to remove kitchen-sink util.
2021-09-11 02:35:35 +02:00
Dario Nieuwenhuis
7c0990ad1e
time: allow storing state inside the driver struct.
2021-08-25 21:06:27 +02:00
Dario Nieuwenhuis
066abfe4c6
nrf/time: allow configuring the rtc irq prio
2021-08-18 22:13:02 +02:00
Dario Nieuwenhuis
05e50e1f4a
time_driver: use regular fn ptr -> raw ptr casts
2021-08-05 19:19:47 +02:00
Dario Nieuwenhuis
0ea6a2d890
time: replace dyn clock/alarm with a global Driver trait
2021-08-05 19:14:09 +02:00