Commit Graph

232 Commits

Author SHA1 Message Date
a8902b0592 Fix build with executor-agnostic 2021-05-19 13:00:01 +02:00
cd0d3c4b0d Merge branch 'stm32-neo' 2021-05-17 02:16:17 +02:00
490152d028 Better interrupt handling 2021-05-14 23:42:09 -03:00
3b86e85770 Bump version of critical-section to 0.2.1 2021-05-13 18:17:50 +02:00
7fa0e57172 Use critical_section crate 2021-05-11 01:15:30 +02:00
6c3299c82f Fix build on the latest nightly 2021-05-10 00:36:23 +02:00
ab00c6987a Fix build on the latest nightly 2021-05-08 13:23:17 +10:00
97ca54fa66 Rename PeripheralBorrow to Unborrow 2021-04-14 19:59:52 +02:00
d336a4b38a Remove Pin from Delay trait 2021-04-14 17:04:40 +02:00
fa8dc796a7 Workaround broken cast crate 2021-04-12 13:30:21 +02:00
708e622ab0 Allow signals to be used when building for std 2021-04-12 12:06:42 +02:00
009e1896bf stm32: consolidate crates 2021-03-30 10:05:52 -05:00
49d87ac868 add with_timeout 2021-03-29 15:48:57 -05:00
d7c3a38efc Reexport macros at root, use eveywhere as #[embassy::task] 2021-03-29 03:00:48 +02:00
1c9f98e1b6 nrf/gpiote: fix irq race condition
The interrupt could fire between checking if sense=disabled and registering the waker,
in which case the future would get stuck.
2021-03-29 00:58:58 +02:00
4ce46df160 Code size optimizations. 2021-03-29 00:58:58 +02:00
0e8bb5dc0b util: Do not unregister waker on wake in AtomicWaker. 2021-03-29 00:58:58 +02:00
df42c38492 nrf/uarte: update to new api 2021-03-29 00:58:58 +02:00
a134fce122 nrf: nicer Peripherals api, add take() 2021-03-29 00:58:57 +02:00
ba6e0a4058 util: add wake_on_interrupt.
This is a lighter version of InterruptFuture.
2021-03-29 00:58:57 +02:00
9c4087ac5c Introduce PeripheralBorrow trait 2021-03-29 00:58:57 +02:00
6ee9e012fc add embassy::main and implement for stm32f4 2021-03-27 17:27:39 -05:00
ea650b684c its /// not //. 2021-03-24 13:31:08 -07:00
18d3c803de Add missing newlines 2021-03-24 13:21:32 -07:00
40617fea04 Document embassy::util::signal & embassy::util 2021-03-24 13:19:36 -07:00
62009150bd Document embassy::util::InterruptFuture 2021-03-24 13:19:36 -07:00
a9e099c215 Document embassy::util::Forever 2021-03-24 13:19:36 -07:00
da59112e86 Document the DropBomb 2021-03-24 13:19:35 -07:00
8fbe83ac26 Added remainder of the docs for embassy::time's public interface. 2021-03-21 18:30:03 -07:00
42be860446 Correct descriptions of Duration 2021-03-21 17:11:30 -07:00
7988b78107 remove now redundant non-doc comment 2021-03-21 17:05:36 -07:00
10f14747c3 Fix module-level docstring 2021-03-21 17:05:22 -07:00
e363607d70 Added doc to the embassy::time::Duration struct 2021-03-21 17:01:52 -07:00
f8d63279ef Re-add erroneously removed newlines 2021-03-21 17:01:13 -07:00
dcdd768e03 Add Struct/impl documentation for embassy::time::Instant 2021-03-21 16:45:53 -07:00
d453b9dd95 Add Struct/impl documentation for embassy::time::Duration 2021-03-21 16:45:48 -07:00
cf1323fb67 Add module-level documentation for embassy::time 2021-03-21 16:45:24 -07:00
d3673886b3 Run cargo fmt 2021-03-18 20:02:42 +01:00
f248bb17ad Allow unused stuff in fmt.rs 2021-03-18 01:42:28 +01:00
8c2da193b8 Add spawn/spawn_pool APIs to Task 2021-03-18 00:38:27 +01:00
5c2bf3981e Move Task into raw 2021-03-18 00:20:11 +01:00
278ce02824 Rename IrqExecutor to InterruptExecutor 2021-03-17 22:52:57 +01:00
a9076636ac Do not export fmt macros.
This was introduced by accident by me struggling with the weird intra-crate macro importing system...
2021-03-17 22:50:27 +01:00
bb68f5d0e8 Add optimized single-word WakerRegistration, add AtomicWakerRegistration. 2021-03-17 02:53:41 +01:00
ab01e0be3b Do not reexport atomic-polyfill 2021-03-17 02:52:21 +01:00
6ed1a87138 Update features for latest nightly. 2021-03-17 02:48:16 +01:00
bd3deb785a Update deps 2021-03-04 22:41:54 +01:00
18f6b8ad68 thumbv6m support with emulated atomics 2021-03-04 21:56:31 +01:00
88946840d1 Make Delay public 2021-03-02 21:16:43 +01:00
d4f2c6cf00 Remove cargo namespaced-features 2021-03-02 21:15:12 +01:00