tib
tib
I also feel the need for a good abstaraction over durations, instant, delays, clock freq., etc. For example these existing solutions have big overlap: https://github.com/rtfm-rs/cortex-m-rtfm/blob/master/src/cyccnt.rs https://github.com/stm32-rs/stm32f1xx-hal/blob/master/src/time.rs I like the cyccnt.rs...
Please find a related discssion here: https://github.com/japaric/stm32f103xx-hal/pull/51
Just implement the Saturating trait on Duration, so one can use it if it suits his goals. https://docs.rs/num-traits/0.2.2/num_traits/ops/saturating/trait.Saturating.html It is implemented also on the basic integer types, so you can...
You can also implement the CheckedXXX operations, which give chance for explicit error handling: https://docs.rs/num-traits/0.2.2/num_traits/ops/checked/trait.CheckedAdd.html But wrapping behavior for example makes no sense on Duration, but it does on Instant...
I just finished a two day investigation: why can't I use the ITM debugging. On a BluePill I used A15 and B4 pins. I thought B3 is then still fine...
Well, I have double checked what has happened, but the final conclusion is missing: now everything works. However during the investigation the problem appeared many times: when iprintln!(stim, ) was...
I just noticed that MonoTimer seems to be stopped, while I writing something to hstdout.
@japaric Since all reactive/rtfm examples become outdated. It would be nice to get some information how to deal with the IRQs and their setup in the future? The RTFM will...
Hi, please consider to use this ADC clock configuration instead: https://github.com/tib888/stm32f103xx-hal/blob/adc_clock/src/rcc.rs
Also it would be nice to have a nonblocking read implementation, like it is proposed here: https://github.com/rust-embedded/embedded-hal/blob/master/src/adc.rs