!YoLPkieCYHGzdjUhOK:matrix.org

Embassy

558 Members
Welcome to the Embassy matrix channel! -- Next-gen async embedded Rust framework -- https://embassy.dev -- https://github.com/embassy-rs/embassy48 Servers

Load older messages


SenderMessageTime
1 Jun 2023
@baeuric:matrix.orgbae
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:matrix.orghfrz
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:matrix.orghfrzIs 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:matrix.orghfrz
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:matrix.freyachat.euniggerius joined the room.10:55:05
@leandromarceddu:matrix.orgLeandro MarcedduTrying 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
@leandromarceddu:matrix.orgLeandro MarcedduHmm, reading further it seems this code is incomplete? There's a lot of commented out stuff..14:58:31
@dirbaio:matrix.orgdirbaiouse https://github.com/embassy-rs/embedded-sdmmc-rs15:01:05
@leandromarceddu:matrix.orgLeandro MarcedduJust blocking then? Ok15:01:59
@dirbaio:matrix.orgdirbaioah hold on15:02:27
@dirbaio:matrix.orgdirbaiono, that's also an async fork15:02:31
@dirbaio:matrix.orgdirbaioembassy-stm32 uses it15:02:37
@dirbaio:matrix.orgdirbaioit hasn't ported SdMmcSpi to async though https://github.com/embassy-rs/embedded-sdmmc-rs/blob/master/src/lib.rs#L9215:02:53
@leandromarceddu:matrix.orgLeandro MarcedduOh! I thought it was the other one, didn't see it was a fork. Thanks!15:03:06
@dirbaio:matrix.orgdirbaioonly the higher-level BlockDevice trait is ported to async15:03:13
@dirbaio:matrix.orgdirbaio(embassy-stm32 implements BlockDevice directly, because it has a dedicated sdmmc peripheral, it doesn't go through spi)15:03:29
@dirbaio:matrix.orgdirbaioah I see ninjasource's fork does have ported SdMmcSpi to asyn15:04:20
@dirbaio:matrix.orgdirbaio * ah I see ninjasource's fork does have ported SdMmcSpi to async15:04:21
@dirbaio:matrix.orgdirbaiohttps://github.com/ninjasource/embedded-sdmmc-rs-async/blob/main/src/sdmmc.rs#L2915:04:26
@dirbaio:matrix.orgdirbaioi'm not sure what's up with the embassy_nrf and commented stuff in lib.rs though15:05:16
@dirbaio:matrix.orgdirbaioneither fork is in a good shape it seems :D15:05:26
@chrissuozzo:matrix.orgChris joined the room.15:05:28
@leandromarceddu:matrix.orgLeandro MarcedduHahaha, okay uhhh. I'll try something 15:05:56
@dirbaio:matrix.orgdirbaioAFAIK embassy's is complete except SdMmcSpi (because as mentioned above, stm32 didn't need it)15:06:40
@dirbaio:matrix.orgdirbaioso perhaps you can copypaste ninjasource's SdMmcSpi into embassy's fork15:06:53
@dirbaio:matrix.orgdirbaioif you do get it working please send a PR15:07:02
@leandromarceddu:matrix.orgLeandro MarcedduMight as well try15:07:12
@dirbaio:matrix.orgdirbaio also, ping ninjasource: I think you didn't see embassy's fork? 😅 15:10:54
@dirbaio:matrix.orgdirbaiowould be good to not duplicate effort15:11:08
@dirbaio:matrix.orgdirbaioI can add you to embassy's repo if you want15:11:17

There are no newer messages yet.


Back to Room ListRoom Version: 6