huntc
5f87c7808c
Remove the cell and trait
...
At the expense of exposing the channel types again. We do this as we want to avoid using dyn traits given their overhead for embedded environments.
2021-07-15 12:31:52 +10:00
huntc
56b3e927fe
ChannelState should be private
2021-07-15 12:31:52 +10:00
huntc
3fdf61c819
Constraint the use of ChannelCell to just channels
2021-07-15 12:31:52 +10:00
huntc
ae62948d6c
Replace UnsafeCell
...
Using a new ChannelCell so that there's no leaking of the abstraction
2021-07-15 12:31:52 +10:00
huntc
1b49acc2f7
Fixed some clippy warnings
2021-07-15 12:31:52 +10:00
huntc
a156f72bfb
Improves the representation of side effects
2021-07-15 12:31:52 +10:00
huntc
816b78c0d9
Reduces the types on sender and receiver
...
In exchange for an UnsafeCell being passed into split
2021-07-15 12:31:52 +10:00
huntc
1b9d5e5071
Multi Producer Single Consumer channel
...
An MPSC inspired by Tokio and Crossbeam. The MPSC is designed to support both single and multi core processors, with only single core implemented at this time. The allocation of the channel’s buffer is inspired by the const generic parameters that Heapless provides.
2021-07-15 12:31:52 +10:00
Dario Nieuwenhuis
c210a6efd1
embassy/time: remove useless impl
2021-07-12 03:45:48 +02:00
Dario Nieuwenhuis
16bb678368
Merge BlockingTimer and Delay
2021-07-12 03:45:48 +02:00
Dario Nieuwenhuis
35a76c364a
embassy/time: make optional via Cargo feature
2021-07-12 03:45:48 +02:00
Dario Nieuwenhuis
94bd4eb7d5
embassy/time: refactor module structure
2021-07-12 03:45:48 +02:00
huntc
e13aa4c2a0
Add tests to our CI
...
Also found some doctests that were failing
2021-07-06 12:29:08 +10:00
Rukai
56d0c5ffe1
Fix warnings in std and rp
2021-07-04 12:46:04 +10:00
Thales Fragoso
51583afc1e
Add docs for BlockingTimer and rename tick features
2021-06-28 18:52:27 -03:00
Thales Fragoso
54197d1663
Add BlockingTimer and features to choose tick rate
2021-06-28 18:01:40 -03:00
Dario Nieuwenhuis
3be49d3e79
fmt: Add dunmy use to avoid "unused variable" errors when no log is enabled.
2021-06-07 03:21:37 +02:00
Dario Nieuwenhuis
ef1ebefec0
fmt: use absolute paths
2021-06-07 03:15:05 +02:00
Dario Nieuwenhuis
e7dc5c0939
fmt: make all macros macro_rules
so scoping is consistent.
2021-06-07 00:16:39 +02:00
Timo Kröger
628e58020f
Add Unborrow
trait bound for Interrupt
...
Allows the compiler to figure out bounds for wrapper code of owned
peripherals and interrupts.
Example: https://gist.github.com/timokroeger/f025ef590557f1cd6c2e9c7ab30442d2
2021-06-04 23:42:25 +02:00
Ulf Lilleengen
ec9b51833c
Allow non-mut register and wake
2021-06-01 15:18:53 +02:00
Dario Nieuwenhuis
1c0ad53841
Unborrow docs
2021-05-19 23:39:45 +02:00
Dario Nieuwenhuis
105c8504b6
Mark Unborrow as unsafe to implement
2021-05-19 23:29:33 +02:00
Dario Nieuwenhuis
dc67d2f4a4
impl Unborrow for &'a mut T
...
This plays nicer with user code that's generic over peripheral traits like `Instance` or `Pin`.
2021-05-19 23:20:26 +02:00
Dario Nieuwenhuis
a8902b0592
Fix build with executor-agnostic
2021-05-19 13:00:01 +02:00
Dario Nieuwenhuis
cd0d3c4b0d
Merge branch 'stm32-neo'
2021-05-17 02:16:17 +02:00
Thales Fragoso
490152d028
Better interrupt handling
2021-05-14 23:42:09 -03:00
Ulf Lilleengen
3b86e85770
Bump version of critical-section to 0.2.1
2021-05-13 18:17:50 +02:00
Dario Nieuwenhuis
7fa0e57172
Use critical_section
crate
2021-05-11 01:15:30 +02:00
Rukai
6c3299c82f
Fix build on the latest nightly
2021-05-10 00:36:23 +02:00
Rukai
ab00c6987a
Fix build on the latest nightly
2021-05-08 13:23:17 +10:00
Dario Nieuwenhuis
97ca54fa66
Rename PeripheralBorrow to Unborrow
2021-04-14 19:59:52 +02:00
Dario Nieuwenhuis
d336a4b38a
Remove Pin from Delay trait
2021-04-14 17:04:40 +02:00
Dario Nieuwenhuis
fa8dc796a7
Workaround broken cast crate
2021-04-12 13:30:21 +02:00
Ulf Lilleengen
708e622ab0
Allow signals to be used when building for std
2021-04-12 12:06:42 +02:00
xoviat
009e1896bf
stm32: consolidate crates
2021-03-30 10:05:52 -05:00
xoviat
49d87ac868
add with_timeout
2021-03-29 15:48:57 -05:00
Dario Nieuwenhuis
d7c3a38efc
Reexport macros at root, use eveywhere as #[embassy::task]
2021-03-29 03:00:48 +02:00
Dario Nieuwenhuis
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
Dario Nieuwenhuis
4ce46df160
Code size optimizations.
2021-03-29 00:58:58 +02:00
Dario Nieuwenhuis
0e8bb5dc0b
util: Do not unregister waker on wake in AtomicWaker.
2021-03-29 00:58:58 +02:00
Dario Nieuwenhuis
df42c38492
nrf/uarte: update to new api
2021-03-29 00:58:58 +02:00
Dario Nieuwenhuis
a134fce122
nrf: nicer Peripherals api, add take()
2021-03-29 00:58:57 +02:00
Dario Nieuwenhuis
ba6e0a4058
util: add wake_on_interrupt.
...
This is a lighter version of InterruptFuture.
2021-03-29 00:58:57 +02:00
Dario Nieuwenhuis
9c4087ac5c
Introduce PeripheralBorrow trait
2021-03-29 00:58:57 +02:00
xoviat
6ee9e012fc
add embassy::main and implement for stm32f4
2021-03-27 17:27:39 -05:00
Joshua Salzedo
ea650b684c
its ///
not //
.
2021-03-24 13:31:08 -07:00
Joshua Salzedo
18d3c803de
Add missing newlines
2021-03-24 13:21:32 -07:00
Joshua Salzedo
40617fea04
Document embassy::util::signal & embassy::util
2021-03-24 13:19:36 -07:00
Joshua Salzedo
62009150bd
Document embassy::util::InterruptFuture
2021-03-24 13:19:36 -07:00