1 Jun 2023 |
bae | In reply to @dirbaio:matrix.org are you running with --release? yeah, didn't make a difference. still get the same issue. I'll see if I can't make an example | 06:39:12 |
hfrz | In reply to @henrik_alser:matrix.org hfrz: You can just send the value down the channel periodically in a loop with a delay i guess? Did not update on this... That's what I ended up to do, I dunno why I stuck myself on an ARC when it was not really needed as the ADC will always read 😠| 09:14:11 |
hfrz | Is there a recommended way to work with a C ABI / FFI on Embassy ? I'll need to use the Bluetooth on Pico W but it isn't supported (yet) and I don't think I have the time to develop the whole feature in less than 2 days in Rust D: | 09:18:08 |
hfrz | In reply to @henrik_alser:matrix.org hfrz: You can just send the value down the channel periodically in a loop with a delay i guess? * Did not update on this... That's what I ended up to do, I dunno why I stuck myself on an Arc when it was not really needed as the ADC will always read 😠| 09:18:20 |
| niggerius joined the room. | 10:55:05 |
Leandro Marceddu | Trying to read an SD card on a Pico (just starting) and I'm looking at async sdmmc interfaces. I found this one: https://github.com/ninjasource/embedded-sdmmc-rs-async/.
Skimming through things I found this right here: https://github.com/ninjasource/embedded-sdmmc-rs-async/blob/main/src/lib.rs#L5-L8 so it makes me think it'll not work for the rp2040, is that assumption correct? | 14:57:18 |
Leandro Marceddu | Hmm, reading further it seems this code is incomplete? There's a lot of commented out stuff.. | 14:58:31 |
dirbaio | use https://github.com/embassy-rs/embedded-sdmmc-rs | 15:01:05 |
Leandro Marceddu | Just blocking then? Ok | 15:01:59 |
dirbaio | ah hold on | 15:02:27 |
dirbaio | no, that's also an async fork | 15:02:31 |
dirbaio | embassy-stm32 uses it | 15:02:37 |
dirbaio | it hasn't ported SdMmcSpi to async though
https://github.com/embassy-rs/embedded-sdmmc-rs/blob/master/src/lib.rs#L92 | 15:02:53 |
Leandro Marceddu | Oh! I thought it was the other one, didn't see it was a fork. Thanks! | 15:03:06 |
dirbaio | only the higher-level BlockDevice trait is ported to async | 15:03:13 |
dirbaio | (embassy-stm32 implements BlockDevice directly, because it has a dedicated sdmmc peripheral, it doesn't go through spi) | 15:03:29 |
dirbaio | ah I see ninjasource's fork does have ported SdMmcSpi to asyn | 15:04:20 |
dirbaio | * ah I see ninjasource's fork does have ported SdMmcSpi to async | 15:04:21 |
dirbaio | https://github.com/ninjasource/embedded-sdmmc-rs-async/blob/main/src/sdmmc.rs#L29 | 15:04:26 |
dirbaio | i'm not sure what's up with the embassy_nrf and commented stuff in lib.rs though | 15:05:16 |
dirbaio | neither fork is in a good shape it seems :D | 15:05:26 |
| Chris joined the room. | 15:05:28 |
Leandro Marceddu | Hahaha, okay uhhh. I'll try something | 15:05:56 |
dirbaio | AFAIK embassy's is complete except SdMmcSpi (because as mentioned above, stm32 didn't need it) | 15:06:40 |
dirbaio | so perhaps you can copypaste ninjasource's SdMmcSpi into embassy's fork | 15:06:53 |
dirbaio | if you do get it working please send a PR | 15:07:02 |
Leandro Marceddu | Might as well try | 15:07:12 |
dirbaio | also, ping ninjasource: I think you didn't see embassy's fork? 😅 | 15:10:54 |
dirbaio | would be good to not duplicate effort | 15:11:08 |
dirbaio | I can add you to embassy's repo if you want | 15:11:17 |