Commit graph

118 commits

Author SHA1 Message Date
Ulf Lilleengen
95d0cae897
Merge pull request #3079 from aurelj/with_timeout
implement with_timeout()/with_deadline() method style call on Future
2024-06-22 14:14:35 +00:00
Dario Nieuwenhuis
6a4ac5bd60 Add collapse_debuginfo to fmt.rs macros.
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+.
2024-06-17 01:38:57 +02:00
Aurélien Jacobs
8ec2e193e2 implement with_timeout()/with_deadline() method style call on Future 2024-06-14 17:46:32 +02:00
Ulf Lilleengen
30918c355b prepare for embassy-time 0.3.1 release 2024-06-04 09:02:41 +02:00
Andres O. Vela
6eaa259342 embassy-time: add timestamp features 2024-05-30 22:16:56 +02:00
Dario Nieuwenhuis
1c9bb7c2e1 time/generic-queue: fix ub in tests. 2024-05-13 00:35:46 +02:00
Dario Nieuwenhuis
5732ee7ca9 Reduce use of the full futures crate. 2024-04-26 23:22:25 +02:00
Dániel Buga
3dc54c8c44 Add some metadata 2024-04-26 18:28:41 +02:00
Vega Deftwing
9053b6b5b3 Fix spelling and white space mistakes 2024-04-11 19:45:38 +00:00
Frostie314159
67c9cc2c4b
Merge branch 'embassy-rs:main' into ticker_send_sync 2024-03-31 20:48:05 +02:00
Frostie314159
a2f9aa592e
Made Ticker::next Send+Sync. 2024-03-31 15:07:01 +02:00
Frostie314159
2ea1040e07
Adjusted behavior. 2024-03-28 19:41:50 +01:00
Frostie314159
7efe8e0005
Merge branch 'embassy-rs:main' into reset-at-after 2024-03-21 14:17:03 +01:00
Dario Nieuwenhuis
3d842dac85 fmt: disable "unused" warnings. 2024-03-20 14:53:19 +01:00
Scott Mabin
20cd7d09f4 time: cloneable delay 2024-02-18 17:01:09 +00:00
Caleb Jamison
0ab0b5590a Fixup docs 2024-01-31 16:28:06 -05:00
Caleb Jamison
8b7d856195 Rename timeout_at to with_deadline 2024-01-31 16:26:11 -05:00
Caleb Jamison
1e698af05b Add timeout_at convenience function and example. 2024-01-31 14:10:31 -05:00
Dario Nieuwenhuis
6a1c415a4c Complete cargo.tomls more. 2024-01-12 00:32:47 +01:00
Dario Nieuwenhuis
22197320ff bump embassy-time 0.3, embassy-executor 0.5, embassy-net 0.4. 2024-01-11 23:01:24 +01:00
Dario Nieuwenhuis
f0606da9ad time: split queue driver too, don't reexport drivers. 2024-01-11 23:01:24 +01:00
Dario Nieuwenhuis
75b05fb344 time: docs improvements, add ci. 2024-01-11 17:17:58 +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
fe0b21e21e Remove nightly autodetects. 2024-01-10 18:32:14 +01:00
Ulf Lilleengen
0027a76bb6
Merge pull request #2420 from chrisprice/mock-driver
Extend mock time driver to support alarms
2024-01-10 10:51:28 +00:00
Dario Nieuwenhuis
495b8b739a Change GPIO inherent methods back to &self.
With the embedded-hal rc3 update I changed them to require `&mut self`, but
in retrospect I think `&self` is better, for extra flexibility.

This PR reverts the changes from the rc3 update to inherent methods.
2024-01-10 00:00:10 +01:00
Dario Nieuwenhuis
c9ac39df94 Update embedded-hal to v1.0 2024-01-09 23:37:14 +01:00
Chris Price
3db8655e25 Ignore the doctest driver registration to prevent duplicate registrations 2024-01-09 17:39:02 +00:00
Chris Price
372a9b2833 Lint/format fixes 2024-01-09 15:58:01 +00:00
Chris Price
9bf655ccd7 Use MockDriver in queue_generic tests 2024-01-09 15:17:25 +00:00
Chris Price
e4e2b31402 Prevent over-allocation 2024-01-09 15:17:25 +00:00
Chris Price
fdd7acd484 Restructure InnerMockDriver
Failing test for overallocation of alarms
2024-01-09 15:17:25 +00:00
Chris Price
8dab88f96d Merge TestDriver into MockDriver 2024-01-09 15:17:25 +00:00
Barnaby Walters
c1156d73d3 Updated driver implementation docs 2023-12-22 19:40:41 +01:00
Barnaby Walters
5150deb70b Minor typo corrections 2023-12-22 17:33:24 +01:00
Barnaby Walters
0fb57ef87d Improved documentation
* Documented features including all tick rates
* Corrected some out-of-date information
* Sorted tick rate features
* Removed gen_tick.py dependency on toml
* Restructured README.md to better explain tick rate, more
  clearly prioritise time driver docs, correct header levels
2023-12-22 17:08:39 +01:00
Dario Nieuwenhuis
8b36a32ed5 ci: use beta, add secondary nightly ci. 2023-12-21 15:03:57 +01:00
RobertTDowling
b857334f92 STM32: Fix race in alarm setting, which impacted scheduling.
Detect potential race condition (should be rare) and return false back
to caller, allowing them to handle the possibility that either the
alarm was never set because it was in the past (old meaning of false),
or that in fact the alarm was set and may have fired within the race
window (new meaning of false). In either case, the caller needs to
make sure the callback got called.
2023-12-17 15:35:35 -08:00
Dario Nieuwenhuis
d81395fab3 Update embedded-hal to 1.0.0-rc.3 2023-12-14 16:19:32 +01:00
Frostie314159
8707462ec2
Adjusted documentation and reset_after behaviour. 2023-12-11 16:11:57 +01:00
Frostie314159
663fa2addd
Introduce reset_{at|after} functions for Ticker. 2023-12-11 13:27:55 +01:00
Jesse Braham
925f5cbc26 Update all references to embasy-executor to the latest version 2023-12-06 12:05:47 +01:00
Scott Mabin
c7d6ea3c78 embassy-time 0.2 2023-12-04 13:10:41 +00:00
Dario Nieuwenhuis
c6989dfbca Remove nightly and unstable-traits features in preparation for 1.75. 2023-11-29 17:26:33 +01:00
Dario Nieuwenhuis
4634316749 Update embedded-(hal,io,nal). 2023-11-29 17:01:36 +01:00
Dario Nieuwenhuis
1f9b649f80 executor: release v0.3.3 2023-11-15 18:44:01 +01:00
Dario Nieuwenhuis
4647df14b1 Update heapless to v0.8, embedded-nal-async to v0.7 2023-11-10 16:43:53 +01:00
Dario Nieuwenhuis
f8721c3786
Merge pull request #2132 from embassy-rs/update-nightly
Update Rust nightly.
2023-11-01 04:10:03 +00:00
Dario Nieuwenhuis
e519e00265 Update Rust nightly. 2023-11-01 04:56:56 +01:00
Dario Nieuwenhuis
35bb20abe7
Merge pull request #2130 from andresovela/time-mock-driver-fix
time: fix MockDriver::now()
2023-10-31 23:36:56 +00:00