Dario Nieuwenhuis
Dario Nieuwenhuis
Async and blocking currently share some "setup" code. This setup code needs to wait for some things, for example here: https://github.com/embassy-rs/embassy/blob/a2d4bab2f8a4a9b994bc0289938a9f725950715f/embassy-stm32/src/i2c/v2.rs#L164 This waiting is done blockingly, it should be done...
I2C has checks for zero-length transfers, which return an error. These should instead do the right thing (send the address, check for ACK, then do a stop condition). This is...
As discussed in today's meeting: It is better if the CS-assert-to-clock and clock-to-CS-deassert delays are configured in the SpiDevice itself, so that the driver doesn't have to add them to...
https://github.com/rust-embedded-community/embedded-sdmmc-rs/blob/710bd34253d453de4045c7307d1d286ccc1972ed/src/sdcard/mod.rs#L61-L67 If you take a CS pin directly, you have to use SpiBus, not SpiDevice. Using SpiDevice with a dummy CS pin breaks bus sharing. (the bus looks "free" to...
[nusb](https://github.com/kevinmehall/nusb) is a pure-Rust libusb replacement. It can help a lot with the issues we're having with libusb (cross compiling pain, segfaults). Tested working on Linux and Windows. Unfortunately nusb...
### Summary redundant_slicing ### Reproducer I tried this code: ```rust fn cmp(a: &mut [u8], b: & [u8]) -> bool { &a[..] < b } ``` Clippy suggests this: ``` warning:...
Currently using stack-allocated buffers is impossible without unsafe. Here are two ideas on how to do this, coming from our conversations in Matrix :) I'm not sure which one is...
Maybe embedded-dma could provide an (unsafe, obviously) API to use any buffer with minimal fuss? Something like this: ```rust struct UnsafeWriteBuffer{ pub unsafe fn new(inner: &'a mut T) -> Self{...
If you've got a chip where the `stm32-metapac/memory.x` feature generates a wrong memory.x please post here. Identified cases: - STM32G030K8 flash generates 32kb but has 64kb - STM32WL55JC ram generates...