aboutsummaryrefslogtreecommitdiff
path: root/embassy-traits/src
Commit message (Collapse)AuthorAgeFilesLines
* Async shared bus for SPI & I2C + rename embassy-traits (#769)Henrik Alsér2022-05-262-253/+0
| | | | | | | | | | | | | | | | | | | * Rename embassy-traits to embassy-embedded-hal * Rename embassy-traits to embassy-embedded-hal * Add shared bus for SPI and I2C * rustfmt * EHA alpha 1 * Rename embedded-traits in examples * rustfmt * rustfmt Co-authored-by: Henrik Alsér <[email protected]>
* Switch to crates.io embedded-hal, embedded-hal-async.Dario Nieuwenhuis2022-04-221-0/+2
| | | | | This temporarily removes support for the async UART trait, since it's not yet in embedded-hal-async.
* Update rust nightly, embedded-hal 1.0, embedded-hal-async.Dario Nieuwenhuis2022-03-111-92/+29
|
* Add embassy-bootUlf Lilleengen2022-02-091-0/+53
| | | | | | | | | | Embassy-boot is a simple bootloader that works together with an application to provide firmware update capabilities with a minimal risk. The bootloader consists of a platform-independent part, which implements the swap algorithm, and a platform-dependent part (currently only for nRF) that provides addition functionality such as watchdog timers softdevice support.
* traits: migrate Delay to embedded-hal 1.0+async, remove Rng and Flash.Dario Nieuwenhuis2022-01-274-148/+0
|
* Support unstable-trait feature for stm32Ulf Lilleengen2022-01-266-405/+145
|
* Merge #545bors[bot]2022-01-032-0/+167
|\ | | | | | | | | | | | | | | | | | | 545: Add adapter for implementing async traits for blocking types r=lulf a=lulf This allows writing drivers relying on async traits, while still functioning with implementations that already implement the embedded-hal traits. Co-authored-by: Ulf Lilleengen <[email protected]>
| * Add adapter for implementing async traits for blocking typesUlf Lilleengen2021-12-172-0/+167
| | | | | | | | | | | | | | | | This allows writing drivers relying on async traits, while still functioning with implementations that already implement the embedded-hal traits. Add examples to stm32l4 for using this feature.
* | Some API documentation fixes in traitsUlf Lilleengen2021-12-193-4/+8
|/
* Remove unneeded rustfmt::skipUlf Lilleengen2021-12-161-3/+2
|
* Fix missing lifetime boundsWilfried Chauveau2021-11-213-9/+24
|
* Add `IntoIterator` trait bound on Future trait's parameterWilfried Chauveau2021-10-291-2/+2
| | | | | The parameter is also renamed from `U` to `V` to avoid confusion with the type parameter `U` from the `write_iter` function that follows.
* Add the `embassy_traits::i2c::WriteIter` traitWilfried Chauveau2021-10-291-0/+19
| | | | | | | | | | This trait makes the parallel with `embedded_hal::i2c::WriteIter`. It allows to fetch bytes to write from an Iterator rather than requiring an allocation for an array. It is provided as an extra Trait to avoid breaking existing implementations of `embassy_traits::i2c::I2c`.
* Clippy fixesDario Nieuwenhuis2021-10-184-11/+11
|
* Remove more unused features.Dario Nieuwenhuis2021-09-031-2/+0
|
* Remove trait_alias, allow(incomplete_features).Dario Nieuwenhuis2021-09-031-1/+0
| | | | trait_alias seems unused. no idea why it's there.
* Rename Random impl to Rng.Bob McWhirter2021-09-011-6/+55
| | | | Create Random struct providing next_x(range) for all T:Rng.
* Move random utils to another trait.Bob McWhirter2021-08-301-3/+5
|
* Add a convenience next(range) to Rng.Bob McWhirter2021-08-271-0/+8
|
* Update nightly, remove removed features.Dario Nieuwenhuis2021-08-041-2/+0
|
* Adjust how we deal with read/write being different length.Bob McWhirter2021-07-231-0/+3
| | | | | Including some docs about it. Removing the Rx-enablement for write-only operations.
* Begin reworking SPI to add DMA for stm32.Bob McWhirter2021-07-231-1/+1
|
* More formatting!Bob McWhirter2021-07-231-9/+6
|
* Split up the SPI trait into several with shared Error associated type.Bob McWhirter2021-07-231-9/+23
|
* nrf async twimFolkert2021-06-041-7/+13
|
* stm32: fix build, add ciDario Nieuwenhuis2021-05-171-1/+1
|
* Get rid of some warningsThales Fragoso2021-05-144-4/+0
|
* Fix build on the latest nightlyRukai2021-05-101-1/+0
|
* Implement async RNG, including rand_core sync traits.Bob McWhirter2021-05-061-1/+1
|
* Add an RNG trait.Bob McWhirter2021-04-262-0/+18
|
* Remove Pin from Flash traitDario Nieuwenhuis2021-04-141-4/+3
|
* Remove Pin from Delay traitDario Nieuwenhuis2021-04-141-3/+2
|
* Remove Pin from I2cDario Nieuwenhuis2021-04-141-4/+3
|
* Remove Pin from SPIDario Nieuwenhuis2021-04-141-3/+3
|
* Remove Pin from GPIO traitsDario Nieuwenhuis2021-04-141-5/+5
|
* Remove pin from UartDario Nieuwenhuis2021-04-141-6/+3
|
* remove qei traitxoviat2021-04-022-23/+0
|
* nrf/uarte: update to new apiDario Nieuwenhuis2021-03-291-10/+24
|
* nrf/qspi: update to new apiDario Nieuwenhuis2021-03-291-3/+11
|
* Merge pull request #103 from theunkn0wn1/doc/timexoviat2021-03-241-0/+3
|\ | | | | Document remainder of embassy::time
| * Added remainder of the docs for embassy::time's public interface.Joshua Salzedo2021-03-211-0/+3
| |
* | traits: add idle traitxoviat2021-03-231-0/+9
|/
* Implement FullDuplex for nrf spimDario Nieuwenhuis2021-03-181-7/+14
|
* Merge branch 'master' into spi-traitDario Nieuwenhuis2021-03-173-2/+26
|\
| * Update features for latest nightly.Dario Nieuwenhuis2021-03-171-1/+3
| |
| * Rename i2c traitDario Nieuwenhuis2021-03-151-2/+1
| |
| * update docsxoviat2021-03-141-0/+8
| |
| * add qei trait and implementationxoviat2021-03-112-0/+15
| |
* | update docsxoviat2021-03-081-3/+3
| |
* | add spi traitxoviat2021-03-082-0/+37
|/