<thejpster[m]>
> https://github.com/rust-lang/rfcs/pull/3759 adds supported targets to Cargo.toml. The primary purpose is to reduce packages in cargo vendor but was left as a future possibility to keep scope small. It also considered erroring if you depended on a package on an unsupported platform but that was pushed off because people were concerned if people published over-constrained "supports" on crates.io so we also deferred that.
<thejpster[m]>
Ed Page would love input about whether that feature is useful to us.
M9names[m] has quit [Quit: Idle timeout reached: 172800s]
Farooq has quit [Quit: Idle timeout reached: 172800s]
<RobinMueller[m]>
I have a question about the RMT peripheral of the ESP32 (https://github.com/esp-rs/esp-hal/blob/main/esp-hal/src/rmt.rs). Is it possible to re-configure the channel after creation? Basically, I want to reconfigure the data pin to be low or an input pin when my neopixel is switched off. Maybe there is an even simpler way? The RMT peripheral the the smart LED adapter abstraction all consume/convert the resources I pass into
<RobinMueller[m]>
them.
<RobinMueller[m]>
s/./.. I could just steal the data pin and reconfigure it on mode transitions, but then the pulsing doese not work, probably because the peripheral mapping is overwritten?/
<RobinMueller[m]>
* I have a question about the RMT peripheral of the ESP32 (https://github.com/esp-rs/esp-hal/blob/main/esp-hal/src/rmt.rs). I use it to drive a Neopixel lightstrip. Is it possible to re-configure the channel after creation? Basically, I want to reconfigure the data pin to be low or an input pin when my neopixel is switched off. Maybe there is an even simpler way? The RMT peripheral the the smart LED adapter abstraction all
<RobinMueller[m]>
consume/convert the resources I pass into them.. I could just steal the data pin and reconfigure it on mode transitions, but then the pulsing doese not work, probably because the peripheral mapping is overwritten?
<RobinMueller[m]>
* I have a question about the RMT peripheral of the ESP32 (https://github.com/esp-rs/esp-hal/blob/main/esp-hal/src/rmt.rs). I use it to drive a Neopixel lightstrip. Is it possible to re-configure the channel after creation? Basically, I want to reconfigure the data pin to be low or an input pin when my neopixel is switched off. Maybe there is an even simpler way? The RMT peripheral the the smart LED adapter abstraction all
<RobinMueller[m]>
consume/convert the resources I pass into them.. I could just steal the data pin and reconfigure it on mode transitions, but then the pulsing doese not work anymore when the lightstrip is on again, probably because the peripheral mapping is overwritten?
<RobinMueller[m]>
(is there an ESP matrix/chat channel? :D)
<KevinPFleming[m]>
In case it matters, `rx.message_buf` is a `heapless::Vec::<u8, 128>`.
<jason-kairos[m]>
is the disassembly small enough to make sense of?
<jason-kairos[m]>
I'd speculate that it's probably pulling in a new function (and more error checking logic)
<jason-kairos[m]>
in my experience copying around data between slices/buffers/etc. in rust is quite slow for reasons that are adjacent to what I mentioned above. It can be quite the task to trick the compiler into generating the proper implementation
<KevinPFleming[m]>
I haven't looked at the disassembly yet... I'll have to try that tomorrow.
<KevinPFleming[m]>
I'm fine with using the for-loop, of course, I'll leave a comment in the source for why it's open-coded instead of using the library :-)
sroemer has quit [Quit: WeeChat 4.5.2]
rainingmessages has quit [Quit: bye]
dngrs[m] has quit [Quit: Idle timeout reached: 172800s]
rainingmessages has joined #rust-embedded
adamgreig[m] has quit [Quit: Idle timeout reached: 172800s]
lulingar[m] has quit [Quit: Idle timeout reached: 172800s]
jfsimon has joined #rust-embedded
jfsimon has quit [Remote host closed the connection]
jfsimon has joined #rust-embedded
sroemer has joined #rust-embedded
sroemer has joined #rust-embedded
pcs38 has quit [Quit: leaving]
U007D[m] has quit [Quit: Idle timeout reached: 172800s]
ouilemur has quit [Quit: WeeChat 4.6.2]
sroemer has quit [Quit: WeeChat 4.5.2]
ouilemur has joined #rust-embedded
dirbaio[m] has quit [Quit: Idle timeout reached: 172800s]
pcs38 has joined #rust-embedded
diondokter[m] has quit [Quit: Idle timeout reached: 172800s]
okhsunrog[m] has joined #rust-embedded
<okhsunrog[m]>
<KevinPFleming[m]> "I am using protobuf, with the..." <- I saw a project where they had problems using micropb. Not sure what caused them, but everything started working smoothly once they migrated to postcard-rpc.... (full message at
<okhsunrog[m]>
okhsunrog[m]: Catherine: what did you end up using?
GuineaWheek[m] has joined #rust-embedded
<GuineaWheek[m]>
someday i hope we can get a rust where having firmware that actually fits on flash (with opt-level=s/z, codegen-units=1, lto=true) and a firmware that emits a non-zero amount of breakpointable lines becomes a reality
pcs38 has quit [Quit: leaving]
Mathias[m] has joined #rust-embedded
<Mathias[m]>
Some of us learned this week at RustWeek that you might prefer opt-level=s on Arm targets. And codegen-units=1 does not improve size (and is worse for compilation speed?). Source: Cliff Biffle’s talk (https://rustweek.org/talks/cliff/)
<KevinPFleming[m]>
I'm using 's' already, and codegen-units=1 does improve code size for me. My project is small enough that even doubling compilation time would not be an issue.
inara` has joined #rust-embedded
inara has quit [Ping timeout: 252 seconds]
jfsimon has quit [Remote host closed the connection]
jfsimon has joined #rust-embedded
jfsimon has quit [Remote host closed the connection]