pflanze has quit [Read error: Connection reset by peer]
pflanze has joined #rust-embedded
<Lumpio->
I'm not sure if it's feasible to try to get the async version to work with a C library that probably expects a blocking read/write function
owlfed[m] has joined #rust-embedded
<owlfed[m]>
Hello, sorry I think this is a common question, I will do some things with rust and microcontroller, I will buy them maybe next Monday.
<owlfed[m]>
ESP32 vs STM32
<owlfed[m]>
I will sense things like electrical signal, WiFi things, flow, etc… but I do not know what micro do I need to buy?
AlexandervanSaas has joined #rust-embedded
<AlexandervanSaas>
ESP32 has wifi so that would be convenient.
<owlfed[m]>
I will use some 4g too
<owlfed[m]>
AlexandervanSaas: Wifi and BT
ragarnoy[m] has quit [Quit: Idle timeout reached: 172800s]
IlPalazzo-ojiisa has joined #rust-embedded
pkoevesdi[m] has joined #rust-embedded
<pkoevesdi[m]>
Hey everybody. I thought I try it here, I'm a rust embedded beginner and have hard times getting Octospi on a STM32H730BV working. I posted it here: https://users.rust-lang.org/t/problem-with-embassy-stm32-new/111166/3. Shall I repost my question here or is it better to just point to there? Thanks!
M9names[m] has joined #rust-embedded
<M9names[m]>
dirbaio is everywhere so it probably doesn't matter too much where you post it :)
<M9names[m]>
but #embassy-rs:matrix.org is where i would recommend you ask about embassy-related things
<pkoevesdi[m]>
M9names[m]: Ok, thank, then I try it there.
<AdamHott[m]>
That's like the intro to embedded rust, it's what I followed about 6 months ago and I had success with that
<AdamHott[m]>
But it doesn't have Wifi
wassasin[m] has joined #rust-embedded
<wassasin[m]>
Got an gpio expander with interrupts on input pins, and configuring/de-configuring the interrupts is an interesting issue as it is all async and dropping the pin leaves an interrupt register still configured. Talk by @dirbaio @ RustNL inspired me to panic in the drop function to disallow it.... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/ojGCfOeRIJStTZNEZoxzajKH>)
<wassasin[m]>
As he said you can still core::mem::forget the pin, but don't do that
<Lumpio->
I get the feeling getting an actual async drop trait is years out, I wonder if it'd be possible to add some kind of compile time workaround at least
<Lumpio->
Some kind of CannotAutoDrop type that is a compile time error to drop automatically, and has to be done through a std::mem::yes_i_really_want_to_drop
danielb[m] has quit [Quit: Idle timeout reached: 172800s]
ragarnoy[m] has joined #rust-embedded
<ragarnoy[m]>
Is there an UART trait somewhere or is the general idea to require a generic such as `UART: Read<u8, Error = E> + Write<u8, Error = E>` ?
JamesMunns[m] has joined #rust-embedded
<JamesMunns[m]>
ragarnoy[m]: Check out "embedded-io"
<ragarnoy[m]>
<JamesMunns[m]> "Check out "embedded-io"" <- yeah I know about it but io, it gives the Read and Write io but there are no equivalent of SpiDevice definitions for uart is kind of what I meant
<dirbaio[m]>
I'd you mean the SpiBus/SpiDevice split: there is no need, there's no equivalent of CS pins or bus sharing in uart.
<dirbaio[m]>
If you mean why there's no uart traits: the io traits *are* the uart traits. Uart is a byte stream, the io traits are a byte stream.
avery71[m] has joined #rust-embedded
<avery71[m]>
`embedded-io` seems cool, are there any crates that utilize the traits from it?