ChanServ changed the topic of #rust-embedded to: Welcome to the Rust Embedded IRC channel! Bridged to #rust-embedded:matrix.org and logged at https://libera.irclog.whitequark.org/rust-embedded, code of conduct at https://www.rust-lang.org/conduct.html
sneakernet[m] has joined #rust-embedded
<sneakernet[m]> is it possible to create a single embedded-rust project that can build for multiple hardware (and if so can you link to an example)?
starblue has quit [Ping timeout: 260 seconds]
starblue has joined #rust-embedded
bomb has joined #rust-embedded
mabez[m] has quit [Ping timeout: 260 seconds]
whitequark[cis] has quit [Ping timeout: 260 seconds]
whitequark[cis] has joined #rust-embedded
mabez[m] has joined #rust-embedded
sarath08071994[m has quit [Ping timeout: 260 seconds]
xiretza[cis] has quit [Ping timeout: 260 seconds]
barnabyw[m] has quit [Ping timeout: 260 seconds]
Mark[m] has quit [Ping timeout: 260 seconds]
oneDragon[m] has quit [Ping timeout: 260 seconds]
Mark[m] has joined #rust-embedded
xiretza[cis] has joined #rust-embedded
oneDragon[m] has joined #rust-embedded
sarath08071994[m has joined #rust-embedded
barnabyw[m] has joined #rust-embedded
paulyoung[m] has joined #rust-embedded
<paulyoung[m]> <sneakernet[m]> "is it possible to create a..." <- There's a video on YouTube about this by diondokter: https://youtu.be/8ydYtuUKOsI?si=VWCAeB5D7d4bgLjV
IlPalazzo-ojiisa has joined #rust-embedded
Kaspar[m] has joined #rust-embedded
<Kaspar[m]> <sneakernet[m]> "is it possible to create a..." <- We're trying to get there with [RIOT-rs](https://github.com/future-proof-iot/RIOT-rs). Early stages though ...
gauteh[m] has quit [Quit: Idle timeout reached: 172800s]
AtleoS has quit [Quit: AtleoS]
starblue has quit [Ping timeout: 268 seconds]
starblue has joined #rust-embedded
ryan-summers[m] has quit [Quit: Idle timeout reached: 172800s]
shashankx86[m] has quit [Quit: Idle timeout reached: 172800s]
dne has quit [Remote host closed the connection]
dne has joined #rust-embedded
IlPalazzo-ojiisa has quit [Remote host closed the connection]
<dirbaio[m]> hehe the static mut lint is going to get stronger https://github.com/rust-lang/rust/issues/123060
<JamesMunns[m]> good.gif
<thejpster[m]> This was an interesting comment:
<thejpster[m]> > The general rule for -mcpu options is that they should (roughly) enable the maximum set of features available
<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]> This might be helpful to reduce boilerplate https://github.com/adamgreig/assign-resources 
<Ecco> oh cool
<Ecco> exactly my problem
<Ecco> thanks!
<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]
sauce has joined #rust-embedded