<re_irc>
<burrbull> barafael: It would be much more better if you add those implementations to HALs directly.
<re_irc>
<barafael> burrbull: they are all living inside rtic-examples repo and I just took them from v0.5 to v1. I'm just random contributor. Maybe the examples should be in the HALs, I don't know
<re_irc>
<barafael> but I think may be good to have one place with some RTIC examples on different targets
<re_irc>
<burrbull> usage examples yes, but they should not content monotonic implementations which must be in hals
<re_irc>
<barafael> ok, good point. So the monotonic impls should go in the HALs behind some feature gate, which makes sense
starblue1 has quit [Ping timeout: 240 seconds]
starblue1 has joined #rust-embedded
gsalazar has joined #rust-embedded
sheb has joined #rust-embedded
sheb has quit [Remote host closed the connection]
<re_irc>
<chmanie> James Munns, dirbaio: Here's my preliminary approach for the MAX11300 driver using typestate. I'm making having use of seq_macro for the port mode structs and the trait implementations that are very repetitive. For the SPI bus I'm using a simple RefCell holding the shared struct. The only thing I'm not super happy with is the code repetition of the individual port configurations after the fact ("configure_xxx"). I...
<re_irc>
<James Munns> Oh neat! I hadn't seen that seq! Macro before!
<re_irc>
<chmanie> Maybe there's a better way but it did seem appropriate
<re_irc>
<chmanie> James Munns, dirbaio: Here's my preliminary approach for the MAX11300 driver using typestate. I'm making heavy use of "seq_macro" for the port mode structs and the trait implementations that are very repetitive. For the SPI bus I'm using a simple RefCell holding the shared struct. The only thing I'm not super happy with is the code repetition of the individual port configurations after the fact ("configure_xxx"). I...
<re_irc>
<James Munns> Gunna stream some more Splitpea development (with "pretty HAL machine"!), today at 18:00 CET (a bit over 30m from now): https://youtu.be/EughbCeVVxw, come hang out and say hi :D
<re_irc>
<James Munns> (pretty HAL machine is a tool for proxying "embedded-hal" commands to an attached USB device, instead of flashing/reflashing a firmware while developing a driver. More info here: https://github.com/jamesmunns/pretty-hal-machine)
jackneill has quit [Remote host closed the connection]
jackneill has joined #rust-embedded
<re_irc>
<James Munns> Starting the stream now :D
<re_irc>
<henrik_alser> James Munns: Catching up on the stream now :D
<re_irc>
Whatever I do with the DWT peripheral, I always get 1073741824 when I call get_cycle_count(), which is 0x4000_0000
<re_irc>
<Mehmet Ali> I am trying to count how many cycles a function takes.
<re_irc>
<Mehmet Ali> I tried the core peripheral from nrf52840_pac like this:
<re_irc>
use nrf52840_hal:: {
<re_irc>
#...
<re_irc>
};
<re_irc>
pac::DWT,
<re_irc>
<Mehmet Ali> I tried the core peripheral from nrf52840_pac like this: