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
starblue has quit [Ping timeout: 268 seconds]
starblue has joined #rust-embedded
AugustoRoman[m] has joined #rust-embedded
<AugustoRoman[m]> What's the scoop with memory alignment in rust? If I declare something like let mut buf = [0u8; 8];, is that guaranteed to be aligned to an 8-byte boundary?
<AugustoRoman[m]> * What's the scoop with memory alignment in rust? If I declare something like let mut buf = \[0u8; 8\];, is that guaranteed to be aligned to an 8-byte boundary?
<AugustoRoman[m]> * What's the scoop with memory alignment in rust? If I declare something like let mut buf = [0u8; 8]; , is that guaranteed to be aligned to an 8-byte boundary?
<M9names[m]> nope, that will have the alignment of the element type (1 byte)
<AugustoRoman[m]> Is there a simpler way to align a specific value or is defining a type the way to go?
<M9names[m]> defining a type is the way to go. you can use the aligned crate if you're feeling lazy.
<AugustoRoman[m]> thanks!
crabbedhaloablut has quit [Quit: bye]
crabbedhaloablut has joined #rust-embedded
vivian[m] has joined #rust-embedded
<vivian[m]> Anyone know what the status is for risc-v for the pico 2 in the rpi-hal, I came across this PR that's been open for a while: https://github.com/rp-rs/rp-hal/pull/847 but not much else
dngrs[m] has joined #rust-embedded
<dngrs[m]> <vivian[m]> "Anyone know what the status is..." <- you can also try asking in the #rp-rs:matrix.org room
AlexandrosLiarok has quit [Quit: Idle timeout reached: 172800s]
cinemaSundays has joined #rust-embedded
ac1dg[m] has joined #rust-embedded
<ac1dg[m]> Hi everyone, I am struggling with LIN mode on STM32MP135F's USART1. According to the reference guide, I have to set the LINEN bit in the USART_CR2 register. I am quite new to Rust and embedded Linux in general. Can someone help me to get LIN mode to work?
starblue has quit [Ping timeout: 252 seconds]
ZachHeylmun[m] has quit [Quit: Idle timeout reached: 172800s]
realroot[m]1 has joined #rust-embedded
<realroot[m]1> lulf will vibration from https://github.com/lulf/watchful/pull/13 be merged?
<realroot[m]1> maybe new updated PR with just that?
majors has quit [Quit: ZNC 1.9.0+deb2build3 - https://znc.in]
majors has joined #rust-embedded
starblue has joined #rust-embedded
lulf[m] has joined #rust-embedded
<lulf[m]> realroot: yup, happy to accept PRs for that.
cinemaSundays has quit [Quit: Connection closed for inactivity]
<realroot[m]1> <lulf[m]> "realroot: yup, happy to accept..." <- PR sent ✅
<realroot[m]1> i wanted to make a separated one for the ticker but github ui merged it when i cliked it on Contribute. it is pretty small anyway
<thejpster[m]> I don’t know I spend ages patching up Google’s Rust driver for the Arm Generic Interrupt Controller to support Cortex-R52, and then I find Arm have their own Rust driver: https://git.trustedfirmware.org/plugins/gitiles/rust-spmc/arm-gic/
<thejpster[m]> Can you all just stop writing the same drivers over and over?
<dirbaio[m]> No, wheel reinventing will continue until morale improves
<thejpster[m]> But hey, at least Arm are getting in on it. Albeit under the TF-A umbrella
<realroot[m]1> lulf to add a timer i am not sure to how handle submenus
diondokter[m] has quit [Quit: Idle timeout reached: 172800s]
danielb[m] has quit [Quit: Idle timeout reached: 172800s]
starblue has quit [Ping timeout: 265 seconds]
<diondokter[m]> There's a tiny breaking change in it due to a previous oversight that doesn't break any of the public dependents I could find.
diondokter[m] has joined #rust-embedded
<diondokter[m]> I released device-driver 1.0.3 just now.
<diondokter[m]> If it actually stops your code from compiling, let me know! I'll yank the release if it's a problem.
starblue has joined #rust-embedded
<JamesMunns[m]> Good old "ShoutVer" compatibility 😃
<diondokter[m]> Yeah, it technically warrants a 2.0 release.
<diondokter[m]> But you know... Rust would've been a 10.0+ release by know using the same criteria
<diondokter[m]> s/know/now/
LiamKinne[m] has quit [Quit: Idle timeout reached: 172800s]
hjeldin__[m] has quit [Quit: Idle timeout reached: 172800s]