>>106220089
>>Without all the IDF/RTOS bloat
>you do realize that HAL is just a bloat on top of that bloat, right?
Why are you talking about things you have no idea about?
Your previous responses also were in a bad faith and lacking any substance.
Fortunately you are a tripfag so I will not have to see any of your posts again. Into the filters you go.

>>106221238
>>106221238
I really like how Rust solved this.
u*::to_be_bytes(self) -> [u8; N]
u*::to_le_bytes(self) -> [u8; N]
u*::to_ne_bytes(self) -> [u8; N]
u*::from_be_bytes([u8; N]) -> self
u*::from_le_bytes([u8; N]) -> self
u*::from_ne_bytes([u8; N]) -> self

These functions are not ambiguous and super handy when dealing with mixed endianness in your code. Especially when combined with Iiterator::array_chunks(). You can just bytes.into_iter().array_chunks().map(u32::from_be_bytes), type deduction infers chunk size and you get an iterator over u32s from big endian byte array.