aboutsummaryrefslogtreecommitdiff
path: root/examples/nrf/src/bin/mpsc.rs
Commit message (Collapse)AuthorAgeFilesLines
* Simpler Channel.Dario Nieuwenhuis2022-04-061-60/+0
| | | | | | | - Allow initializing in a static, without Forever. - Remove ability to close, since in embedded enviromnents channels usually live forever and don't get closed. - Remove MPSC restriction, it's MPMC now. Rename "mpsc" to "channel". - `Sender` and `Receiver` are still available if you want to enforce a piece of code only has send/receive access, but are optional: you can send/receive directly into the Channel if you want.
* Use embassy/defmt-timestamp-uptime in all examples.Dario Nieuwenhuis2022-04-021-3/+3
|
* blocking_mutex: refactor to work on stable. No GATs, and can be constructed ↵Dario Nieuwenhuis2022-02-121-3/+3
| | | | in const.
* nrf/gpio: add infallible inherent methods, remove some duplication.Dario Nieuwenhuis2021-12-201-3/+2
| | | | This implements Input and Output using FlexPin, to avoid some code duplication.
* embassy/channel: switch to use MutexKindDario Nieuwenhuis2021-09-131-3/+4
|
* embassy: Refactor module structure to remove kitchen-sink `util`.Dario Nieuwenhuis2021-09-111-3/+2
|
* Remove trait_alias, allow(incomplete_features).Dario Nieuwenhuis2021-09-031-1/+0
| | | | trait_alias seems unused. no idea why it's there.
* examples: Consistently use unwrap! in favor of .unwrap()Ben Gamari2021-08-051-3/+4
| | | | | Unfortunately errors from `embedded_graphics` and `core` doesn't provide the necessary instances currently.
* time: replace dyn clock/alarm with a global Driver traitDario Nieuwenhuis2021-08-051-1/+0
|
* Update nightly, remove removed features.Dario Nieuwenhuis2021-08-041-2/+0
|
* rustfmt everythingDario Nieuwenhuis2021-08-041-1/+0
|
* Provides a cleaner construction of the channel with the common "new" naminghuntc2021-07-151-1/+2
|
* Use of a NoopMutexhuntc2021-07-151-4/+4
|
* Remove the cell and traithuntc2021-07-151-4/+4
| | | | 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.
* Replace UnsafeCellhuntc2021-07-151-5/+3
| | | | Using a new ChannelCell so that there's no leaking of the abstraction
* Reduces the types on sender and receiverhuntc2021-07-151-3/+5
| | | | In exchange for an UnsafeCell being passed into split
* Multi Producer Single Consumer channelhuntc2021-07-151-0/+64
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.