<thejpster[m]>
My read of that is that -C target-cpu=cortex-m85, say, should turn on M-Profile Vector Extensions and double precision floating point, and you should use -C target-features=-fp64,-mve or something similar to turn them off again.
badyjoke[m] has quit [Quit: Idle timeout reached: 172800s]
<Ecco>
embassy question: how am I supposed to create drivers from embassy_stm32::Peripherals?
<Ecco>
Let's suppose I have a "display" driver and a RTC driver
<Ecco>
I have a function build_display(p: embassy_stm32::Peripherals) -> MyDisplay
<Ecco>
and another build_rtc(p: embassy_stm32::Peripherals) -> Rtc
<dirbaio[m]>
Pass individual peripherals, not the entire Peripherals struct
<Ecco>
so individual peripherals/pins
<dirbaio[m]>
Yes
<Ecco>
how about passing a reference to embassy_stm32::Peripherals?
<dirbaio[m]>
Ecco: Won't work, because these functions need to take ownership of the peripherals they need
<dirbaio[m]>
A borrow is not enough
<Ecco>
indeed
<Ecco>
makes sense
<Ecco>
they most likely want some level of exclusive access to the device
<Ecco>
assign-resources is exactly what I was trying to conceptualize
<Ecco>
excellent!
<Ecco>
Question: I assume assign-resources is zero-cost. is it?
<dirbaio[m]>
Yes
<Ecco>
yeah, it's really just doing the partial moves in a nice way
<Ecco>
the code is really short
<Ecco>
cool
<Ecco>
Honestly, I think this should be part of embassy itself
<Ecco>
or at least used in an embassy example
<Ecco>
b/c that's most likely a problem most users are going to run into
<Ecco>
anyway, thanks a lot for the pointer - super helpfup, as always!
<Ecco>
*helpful
bomb has quit [Quit: 💣]
bartmassey[m] has quit [Quit: Idle timeout reached: 172800s]
JomerDev[m] has joined #rust-embedded
<JomerDev[m]>
Has anybody here played with overclocking the rp2040/pico with rust and has an example?
crabbedhaloablut has quit []
crabbedhaloablut has joined #rust-embedded
AdamHott[m] has quit [Quit: Idle timeout reached: 172800s]
ithinuel[m] has joined #rust-embedded
<ithinuel[m]>
<JomerDev[m]> "Has anybody here played with..." <- I think some people in #rp-rs:matrix.org did play with overclocking. Whether they have an example or not, I don’t know.
<thejpster[m]>
<ithinuel[m]> "I think some people in #rp-rs:..." <- How much do you want to overclock?
<JomerDev[m]>
thejpster[m]: In theory to at least 200Mhz. I have by now found a project on github which shows how to do it with embassy
jannic[m] has quit [Quit: Idle timeout reached: 172800s]
therealprof[m] has quit [Quit: Idle timeout reached: 172800s]
sauce has quit [Remote host closed the connection]