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]
<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]