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
firefrommoonligh has quit [Quit: Idle timeout reached: 172800s]
f0rte[m] has quit [Quit: Idle timeout reached: 172800s]
cr1901 has quit [Quit: Leaving]
cr1901 has joined #rust-embedded
pbsds has quit [Quit: The Lounge - https://thelounge.chat]
M9names[m] has quit [Quit: Idle timeout reached: 172800s]
Guest7282 has left #rust-embedded [Error from remote client]
oneDragon[m] has joined #rust-embedded
<oneDragon[m]> Recently there was an idea to implement a rust gpio library on bare metal. Is this feasible?
<oneDragon[m]> just for easily use GPIO to wrapper some operation in bcm2711 like function select, GPSETx, GPCLKx this.
<oneDragon[m]> * Recently there was an idea to implement a rust gpio library on bare metal. Is this feasible?
<oneDragon[m]> just for easily use GPIO to wrapper some operation in bcm2711 like function select, GPSETx, GPCLKx this.
<oneDragon[m]> The final product I want is somewhat similar to the one used in python.
K900 has joined #rust-embedded
<K900> What do you mean by "bare metal"?
<K900> Like, no OS, just your Rust code running directly on the hardware?
<oneDragon[m]> I didn't expect to see you here. you've dabbled in a lot.👀
<oneDragon[m]> there is a kind of OS under, but this OS wasn't provide a kind of drive of it.
<oneDragon[m]> but when i check the manual, it seems feasible to set GPIO message via change registers.
<oneDragon[m]> This operating system, as I call it, will merge the applications and drivers I wrote into it, eventually producing a binary file that runs directly on hardware.
thejpster[m] has quit [Quit: Idle timeout reached: 172800s]
ilpalazzo-ojiis4 has joined #rust-embedded
<ilpalazzo-ojiis4> thejpster: https://hachyderm.io/@thejpster/112028541339341748 Sir sorry if I'm getting indiscreet, but how did you get your first real job 6 months from now?
<NiaLinaLunaStorm> <ilpalazzo-ojiis4> "thejpster: https://hachyderm.io/..."; <- um... 2004, not 2024?
<ilpalazzo-ojiis4> Or 2014, possibly.
<ilpalazzo-ojiis4> But 2004 sounds more likely.
<NiaLinaLunaStorm> no, the toot actually says 2004
<NiaLinaLunaStorm> > I started my first “proper” job in mid 2004
explodingwaffle1 has joined #rust-embedded
<ilpalazzo-ojiis4> It appears fixed. Goody!
thejpster[m] has joined #rust-embedded
<thejpster[m]> Yes, it was clearly a typo.
qzl[m] has joined #rust-embedded
<qzl[m]> error[E0412]: cannot find type `Result` in this scope... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/YTcmYEttDKaKoySvjckmUqTI>)
<qzl[m]> My project relies on embedd-HAL, compiling errors in no_std, no_main environment. What is the reason
<JamesMunns[m]> Do you have your target installed? Like rustup target add thumbv7m-none-eabi or so?
<JamesMunns[m]> "can't find result" means you're probably missing std/core for your platform.
diondokter[m] has quit [Quit: Idle timeout reached: 172800s]
marmrt[m] has quit [Quit: Idle timeout reached: 172800s]
Ralph[m] has quit [Quit: Idle timeout reached: 172800s]
haobogu[m] has joined #rust-embedded
<haobogu[m]> Hello everyone, in rust embedded world, what's the most common serializer for converting structs to bytes?
diondokter[m] has joined #rust-embedded
<diondokter[m]> <haobogu[m]> "Hello everyone, in rust embedded..." <- Not sure there's a clear winner, but Postcard gets used a lot
<haobogu[m]> diondokter[m]: will try it, thanks :D
korken89[m] has joined #rust-embedded
<korken89[m]> I guess postcard and ssmarshal
adamgreig[m] has joined #rust-embedded
<adamgreig[m]> zerocopy perhaps too
AdamHott[m] has quit [Quit: Idle timeout reached: 172800s]
Dr_Who has quit [Quit: ZZZzzz…]
<dav1d> I made a no-std no-alloc Map/Set crate for enums (or anything with a bijective mapping to an index), which could be interesting to you, would love some feedback: https://docs.rs/enumap/latest/enumap/index.html
<diondokter[m]> <dav1d> "I made a no-std no-alloc Map/Set..." <- Interesting idea. So instead of taking a "random" type as the key of the map, you use an enum. And then you use the enum discriminant as the index to immediately know the index in the internal array
<dav1d> diondokter[m], yep exactly! And there is a macro to implement that mapping automatically for enums, but you can do it technically for any kind of data structure that is Copy
GrantM11235[m] has quit [Quit: Idle timeout reached: 172800s]
barnabyw[m] has quit [Quit: Idle timeout reached: 172800s]
Alex[m] has quit [Quit: Idle timeout reached: 172800s]
dirbaio[m] has quit [Quit: Idle timeout reached: 172800s]
PhilMarkgraf[m] has quit [Quit: Idle timeout reached: 172800s]
pbsds has joined #rust-embedded
sourcebox[m] has quit [Quit: Idle timeout reached: 172800s]