aboutsummaryrefslogtreecommitdiff
path: root/embassy-time/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix API documentation for Ticker reset_at() functionIsmo Puustinen2025-12-051-1/+1
| | | | | | | The documentation indicated reset_at() would fire immediately if the deadline is in the past. However, if the duration is further in the future than the deadline is in the past, the ticker won't fire immediately but just before the next scheduled tick.
* Rustfmt for edition 2024.Dario Nieuwenhuis2025-10-063-16/+6
|
* Edition 2024.Dario Nieuwenhuis2025-10-061-0/+1
|
* time: add Instant::try_from_nanosDario Nieuwenhuis2025-09-221-0/+11
|
* fix rustfmt and add changelogRogan Morrow2025-09-221-1/+1
|
* add as_nanos and from_nanos where missingRogan Morrow2025-09-222-1/+18
|
* Merge pull request #4560 from 823984418/optimize_async_delayDario Nieuwenhuis2025-08-191-6/+8
|\ | | | | | | Optimize embedded_hal_async::delay::DelayNs impl
| * modify async fn to return impl Future8239844182025-08-171-6/+8
| |
* | time: implement Sum for DurationMatt Johnston2025-08-171-0/+9
|/
* docs: clarify that timer will expire immediately if in pastredfast002025-08-121-0/+1
|
* Fix build of embassy-time with std+defmt.Dario Nieuwenhuis2025-07-291-3/+0
|
* `embassy-time`: add missing `Debug` & `defmt::Format` derivesRalph Ursprung2025-07-286-1/+23
| | | | | | | | `defmt::Format` is *not* implemented for `MockDriver` and `InnerMockDriver` because the former contains the latter and the latter is using `Queue` from `embassy-time-queue-utils` which so far does not have a `defmt` dependency. since this is just a mock driver it shouldn't be relevant if it has no `defmt::Format` impl.
* Remove futures-util where unnecessaryDániel Buga2025-06-161-2/+2
|
* Manually implement the future for `with_timeout`Alex Moon2025-04-231-19/+42
|
* Add try_from constructors to DurationSebastian Scholz2025-03-101-2/+78
|
* Add Instant::try_from_* constructor functionsSebastian Scholz2025-03-071-0/+31
|
* Take self instead of &mut selfwackazong2025-02-041-2/+4
| | | This is more idiomatic since methods with these names usually take self and not &mut self.
* Add saturating_add and saturating_sub to Instantwackazong2025-02-041-0/+10
|
* Merge pull request #3840 from bugadani/inlineDario Nieuwenhuis2025-02-031-0/+1
|\ | | | | | | Allow inlining on time driver boundary
| * Allow inlining on time driver boundaryDániel Buga2025-02-031-0/+1
| |
* | Add cancel safety notes to TickerMarvin Gudel2025-02-021-0/+7
|/
* Rename ETQD, bump dateDániel Buga2024-12-223-3/+3
|
* Remove special handling of integrated timer queueDániel Buga2024-12-161-3/+3
|
* Merge time-driver and time-queue-driver traits, make HALs own and handle the ↵Dario Nieuwenhuis2024-12-133-250/+130
| | | | queue.
* Refactor integrated-timersDániel Buga2024-12-105-551/+83
|
* Use inline const for initializing arrays. (#3567)Dario Nieuwenhuis2024-11-242-4/+4
|
* Remove noop from queue_genericDániel Buga2024-11-191-2/+0
|
* Reduced define for 'unreachable!' to a single macro ruleTarun Singh2024-07-171-10/+6
|
* Merge pull request #3079 from aurelj/with_timeoutUlf Lilleengen2024-06-222-1/+31
|\ | | | | | | implement with_timeout()/with_deadline() method style call on Future
| * implement with_timeout()/with_deadline() method style call on FutureAurélien Jacobs2024-06-142-1/+31
| |
* | Add collapse_debuginfo to fmt.rs macros.Dario Nieuwenhuis2024-06-171-0/+17
|/ | | | | | This makes location info in defmt logs point to the code calling the macro, instead of always to fmt.rs as before. Fix works with nightlies starting with today's, and stable 1.81+.
* embassy-time: add timestamp featuresAndres O. Vela2024-05-301-1/+16
|
* time/generic-queue: fix ub in tests.Dario Nieuwenhuis2024-05-131-66/+52
|
* Reduce use of the full `futures` crate.Dario Nieuwenhuis2024-04-261-6/+4
|
* Merge branch 'embassy-rs:main' into ticker_send_syncFrostie3141592024-03-3112-878/+229
|\
| * Adjusted behavior.Frostie3141592024-03-281-2/+2
| |
| * Merge branch 'embassy-rs:main' into reset-at-afterFrostie3141592024-03-2112-878/+217
| |\
| | * fmt: disable "unused" warnings.Dario Nieuwenhuis2024-03-201-2/+1
| | |
| | * time: cloneable delayScott Mabin2024-02-181-0/+1
| | |
| | * Fixup docsCaleb Jamison2024-01-311-1/+1
| | |
| | * Rename timeout_at to with_deadlineCaleb Jamison2024-01-312-2/+2
| | |
| | * Add timeout_at convenience function and example.Caleb Jamison2024-01-312-2/+15
| | |
| | * time: split queue driver too, don't reexport drivers.Dario Nieuwenhuis2024-01-118-91/+20
| | |
| | * time: split driver into a separate embassy-time-driver crate.Dario Nieuwenhuis2024-01-116-678/+6
| | |
| | * Remove nightly autodetects.Dario Nieuwenhuis2024-01-101-2/+0
| | |
| | * Ignore the doctest driver registration to prevent duplicate registrationsChris Price2024-01-092-2/+6
| | |
| | * Lint/format fixesChris Price2024-01-092-4/+2
| | |
| | * Use MockDriver in queue_generic testsChris Price2024-01-092-93/+25
| | |
| | * Prevent over-allocationChris Price2024-01-091-12/+34
| | |
| | * Restructure InnerMockDriverChris Price2024-01-091-23/+38
| | | | | | | | | | | | Failing test for overallocation of alarms