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
Guest7221 has left #rust-embedded [Error from remote client]
IlPalazzo-ojiisa has quit [Quit: Leaving.]
dngrsspookyvisio has quit [Quit: Idle timeout reached: 172800s]
crabbedhaloablut has quit []
<wllenyj[m]> Does anyone know why the cortex-r crate is not implemented in rust-embedded?
<JamesMunns[m]> wllenyj[m]: We've had a couple people interested, but basically: because nobody has written/maintained it
<JamesMunns[m]> There were a couple folks a couple of years back, but they seem not to have continued with it.
duderonomy has quit [Ping timeout: 260 seconds]
uep[m] has quit [Quit: Idle timeout reached: 172800s]
<wllenyj[m]> <JamesMunns[m]> "There were a couple folks a..." <- Thanks, maybe `cortex-r` 32bit is not widely used enough.
emerent has quit [Ping timeout: 252 seconds]
emerent has joined #rust-embedded
ian_rees[m] has joined #rust-embedded
<ian_rees[m]> is this embedded-hal issue the latest on DMA trait discussion? https://github.com/rust-embedded/embedded-hal/issues/37
lehmrob has joined #rust-embedded
Guest7221 has joined #rust-embedded
crabbedhaloablut has joined #rust-embedded
notgull has quit [Ping timeout: 240 seconds]
notgull has joined #rust-embedded
Farooq has joined #rust-embedded
<Farooq> Is the soldering good?
K900 has joined #rust-embedded
<K900> Uhh
<K900> Burned is usually bad
<Farooq> what do you mean?
<Farooq> it's not burned. my soldering thing was dirty
<K900> That is also usually bad
<Farooq> how should I clean it?
<Farooq> hmm I need a soldering tutorial
IlPalazzo-ojiisa has joined #rust-embedded
<ryan-summers[m]> Honestly it looks like the PCB may not have a sufficient fiducial ring where the pins go in, so there's not a great wetting surface for the solder. But yeah, I'd agree that there are likely some issues you should work out with either heat, quality of solder, application, preheating, etc.
<ryan-summers[m]> Usually a solder joint should be shiny, rounded, well-wetted etc.
<ryan-summers[m]> The burned particulate could likely be rosin flux that burned off during the soldering process. Flux is often incorporated directly into hand solders
<Farooq> okay it's time for YT then
<ryan-summers[m]> Yeah definitely go watch a few tutorials. Hand soldering is a bit of an art
haobogu[m] has quit [Quit: Idle timeout reached: 172800s]
<therealprof[m]> Farooq: So which iron did you get?
<Farooq> ummm
<Farooq> a very lowend 10 usd one for now
<Farooq> I will get a better one later
<therealprof[m]> Just double checking.
Guest7221 has left #rust-embedded [Error from remote client]
newam[m] has quit [Quit: Idle timeout reached: 172800s]
TomB[m] has joined #rust-embedded
<TomB[m]> anyone see the new beagleboard based around a microchip polaris?
<TomB[m]> looks cool
d3zd3z[m] has joined #rust-embedded
<d3zd3z[m]> It seems that, although regex-lite has a 'std' feature, disabling it merely generates a compiler error that 'std' is currently required, and to file a ticket.
<d3zd3z[m]> Anyone know of possible options?
lehmrob has quit [Remote host closed the connection]
emerent has quit [Remote host closed the connection]
emerent has joined #rust-embedded
cr1901_ has joined #rust-embedded
cr1901 has quit [Ping timeout: 248 seconds]
firefrommoonligh has quit [Quit: Idle timeout reached: 172800s]
Guest7221 has joined #rust-embedded
neceve has joined #rust-embedded
<d3zd3z[m]> <TomB[m]> "https://crates.io/crates/safe-..."; <- Definitely worth looking at.
lkostka[m] has joined #rust-embedded
<lkostka[m]> Hi.
<lkostka[m]> Let's say that I have board A and board B. Same MCU. Different LED pins. How using stm32f1xx-hal I can define a different LED pin to use depending on board ?
<K900> Crate features, probably
<K900> You can't detect the board at runtime unless the board provides some smart way of doing it
<K900> (and both boards agree on what that way is0
<K900> s/is0/is)/
<lkostka[m]> Not at runtime. I will build each firmware for each board
<K900> Then crate features, yes
<lkostka[m]> Ok then use cfg macro detecting features ?
<K900> Yes
<lkostka[m]> Ugh. Then I need to change function signature `hal::gpio::Pin<'C', 13, Output>` and conditionally compile 2 lines... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/ELjjFIthnyQiWGRzBXIIXaxv>)
<lkostka[m]> s/let//, s/mut//, s/gpioc = dp.GPIOC.split();//
<lkostka[m]> * Ugh. Then I need to change function signature `hal::gpio::Pin<'C', 13, Output>` and conditionally compile 2 lines... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/INaKdSvsxqlhldoaqxavuXne>)
GrantM11235[m] has joined #rust-embedded
<GrantM11235[m]> I would suggest `type Led = hal::gpio::Pin<'C', 13, Output>;`
newam[m] has joined #rust-embedded
<newam[m]> this is one of the parts where rust is sadly not as good as C/C++, conditional compilation.
<lkostka[m]> It would be much easier If hal provided some way to instantiate given type from `type Led = hal::gpio::Pin<'C', 13, Output>`
<lkostka[m]> then only thing needed would be `type Led = hal::gpio::Pin<'C', 13, Output>`
<lkostka[m]> or maybe come macro that will do all the required stuff
<ian_rees[m]> lkostka - I don't have any experience with the stm32 HAL, but in the ATSAM world the HAL (hardware abstraction layer) and BSP (board support package) are separate, which allows you to define the types as suggested above in a BSP for each board, then in your main use cfg to select either `extern crate board_a as bsp;` or `extern crate board_b as bsp;`
m5zs7k has quit [Ping timeout: 248 seconds]
m5zs7k has joined #rust-embedded
<lkostka[m]> <ian_rees[m]> "lkostka - I don't have any..." <- can you provide some crate names so I can examine source code to look for possible solutions
duderonomy has joined #rust-embedded
<ian_rees[m]> sure - these are the boards used to provide examples, but if you've got a custom board the normal approach would be to make a BSP with correct pin definitions https://github.com/atsamd-rs/atsamd/tree/master/boards
neceve has quit [Ping timeout: 258 seconds]
neceve has joined #rust-embedded
Danilo[m] has quit [Quit: Idle timeout reached: 172800s]
Guest7221 has quit [Ping timeout: 258 seconds]