summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-09-30Merge #981bors[bot]
981: (embassy-stm32): add E-H1 uart blocking & nb implementation r=MathiasKoch a=MathiasKoch Co-authored-by: Mathias <mk@blackbird.online>
2022-09-30Implement embedded-hal-nb for uartMathias
2022-09-30Remove flash lock/unlock public API from stm32 flash, and perform the ↵Mathias
unlocking and locking automatically on erase and write operations
2022-09-30Merge branch 'master' of https://github.com/embassy-rs/embassy into ↵Mathias
embassy-stm32/uart-eh1
2022-09-29Merge #991bors[bot]
991: usb: remove all "Direction as u8" casts. r=Dirbaio a=Dirbaio Alternative fix for #989 , see comment there for rationale. bors r+ Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-09-29usb: remove all "Direction as u8" casts.Dario Nieuwenhuis
2022-09-29Merge #990bors[bot]
990: Small pubsub improvements r=Dirbaio a=diondokter - Futures in pub & sub are now awaited instead of returned - Added functions for reading how many messages are available This helps people get better compiler diagnostics. For example, I forgot to call await on a future and the compiler didn't complain. This also helps with making some decisions based on the state of the channels. Co-authored-by: Dion Dokter <dion@tweedegolf.com>
2022-09-29Went back to named futures but now with must_useDion Dokter
2022-09-29Futures in pub & sub are now awaited instead of returned for better user ↵Dion Dokter
compiler diagnostics. Added functions for reading how many messages are available
2022-09-29Merge branch 'master' of https://github.com/embassy-rs/embassy into ↵Mathias
embassy-stm32/uart-eh1
2022-09-29Merge #988bors[bot]
988: Update embedded-hal versions and explicitly pin r=lulf a=lulf Pinning to ensure CI don't accidentally break. Co-authored-by: Ulf Lilleengen <lulf@redhat.com>
2022-09-29Update embedded-hal versions and explicitly pinUlf Lilleengen
2022-09-29Remove code duplication on nb_readMathias
2022-09-28Merge branch 'embassy-rs:master' into masterChuck Davis
2022-09-28Update some outstanding questionsceekdee
2022-09-28Merge #983bors[bot]
983: Remove subghz static lifetime requirement r=lulf a=lulf Co-authored-by: Ulf Lilleengen <lulf@redhat.com>
2022-09-28Remove subghz static lifetime requirementUlf Lilleengen
2022-09-28Add E-H1 uart blocking & nb implementationMathias
2022-09-27Initial add for sx126xceekdee
2022-09-27Merge #914bors[bot]
914: (embassy-rp): Add I2C master implementation r=Dirbaio a=MathiasKoch This PR adds both blocking and DMA based async implementations of I2C master. Both E-H 0.2 & E-H 1.0 abstractions are implemented as well. ### Questions & concerns: - Do we need an I2C interrupt handler (for transfer done, abort & error handling?) (async only) - Do we need to add some automatic attempt at unblocking an I2C bus in case of failures (see ref: https://github.com/fivdi/pico-i2c-dma/blob/7ebfd553f3ce5b5b210d53102b0ecca158172633/src/i2c_dma.c#L116-L142) - Should I add `vectored_{read, write}` implementations? Co-authored-by: Mathias <mk@blackbird.online> Co-authored-by: Mathias Koch <mk@blackbird.online>
2022-09-27Allow unused fields temporarily in i2cMathias
2022-09-27Move async i2c implementation to new PR, to merge working blocking ↵Mathias
implementation faster
2022-09-27Apply suggestions from code reviewMathias Koch
Co-authored-by: Jacob Gonzalez <jacobgonzalez5252@gmail.com>
2022-09-27Add async API for I2CMathias
2022-09-27Add further i2c error typesMathias
2022-09-27Fix blocking I2CMathias
2022-09-27Add blocking read & write for I2CMathias
2022-09-27Add preliminary I2C implementation for RP2040Mathias
2022-09-27Merge #979bors[bot]
979: usb: make HALs depend only on embassy-usb-driver. r=Dirbaio a=Dirbaio Follow up to #972 bors r+ Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-09-27usb: make HALs depend only on embassy-usb-driver.Dario Nieuwenhuis
2022-09-27Merge #934bors[bot]
934: (embassy-rp): Add Buffered UART implementation r=MathiasKoch a=MathiasKoch ### Questions & concerns: - ~~Would it make sense to add `RxBufferedUart` and `TxBufferedUart`, for cases where you would want to only buffer one way?~~ - ~~Do I need to be monitoring more interrupt flags than `Receive` & `Receive timeout`?~~ This PR adds working `BufferedUart` implementation, along with `RxBufferedUart` and `TxBufferedUart`. The implementation leaves room for improvement with respect to performance, as it still does not utilize DMA nor the internal UART buffers. Co-authored-by: Mathias <mk@blackbird.online> Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-09-27Fix bufferedUart read and write testsMathias
2022-09-27Extend buffered-uart test to transmit 32 bytesMathias
2022-09-27Rename from {Rx,Tx}BufferedUart to BufferedUart{Rx,Tx} to be compliant with ↵Mathias
stm32 and nrf implementations
2022-09-27RebaseMathias
2022-09-26Merge #973bors[bot]
973: Rework STM32 BufferedUart internals so we can split into Rx and Tx like embassy-nrf r=lulf a=guillaume-michel Context: On STM32, BufferedUart is not splittable into Rx and Tx part like the non buffered version. On embassy-nrf, a RefCell is used to make BufferedUarte splittable. Description: This PR add the possibility to split BufferedUart into Rx and Tx without adding breaking changes. Hope somebody find it useful Co-authored-by: Guillaume MICHEL <guillaume@squaremind.io>
2022-09-26Merge #976bors[bot]
976: rp: enable time-driver in Cargo.toml instead of ci.sh r=Dirbaio a=Dirbaio bors r+ Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-09-26Merge #977bors[bot]
977: Use firmware writer in stm32{f7, h7} example app r=lulf a=lulf The new FirmwareWriter is useful in particular for these architectures due to the large erase sector size. Co-authored-by: Ulf Lilleengen <ulf.lilleengen@gmail.com>
2022-09-26Use firmware writer in stm32{f7, h7} example appUlf Lilleengen
The new FirmwareWriter is useful in particular for these architectures due to the large erase sector size.
2022-09-26rp: set correct teleprobe target for rpi-pico tests.Dario Nieuwenhuis
2022-09-26Add HIL test for bufferedUartMathias
2022-09-26Remove code-duplication in async bufferedUart implementationsMathias
2022-09-26Enable embedded-io on nightlyMathias
2022-09-26FormattingMathias
2022-09-26Add bufferedUart, including a split version for only Rx or TxMathias
2022-09-26Add BufferedUart implementation, and feature-guard time-driver ↵Mathias
initialization, to free up TIMER peripheral if not used with embassy executor
2022-09-26rp: enable time-driver in Cargo.toml instead of ci.shDario Nieuwenhuis
2022-09-26Merge #975bors[bot]
975: rp: Disable intrinsics by default. r=Dirbaio a=Dirbaio bors r+ Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-09-26rp: Disable intrinsics by default.Dario Nieuwenhuis
2022-09-26Rework STM32 BufferedUart internals so we can split into Rx and Tx like ↵Guillaume MICHEL
embassy-nrf