tm4c-hal icon indicating copy to clipboard operation
tm4c-hal copied to clipboard

Missing MonoTimer:new as pub fn

Open vortex314 opened this issue 2 years ago • 1 comments

While the function is created in https://github.com/rust-embedded-community/tm4c-hal/blob/master/tm4c123x-hal/src/time.rs ,the function is not exposed, so also Instant cannot be obtained.

92 |     let mut mono_timer  = MonoTimer::new(cp.DWT, clocks);
   |                                      ^^^
   |                                      |
   |                                      function or associated item not found in `MonoTimer`
   |                                      help: there is a method with a similar name: `now`

Complete code : https://github.com/vortex314/tiva-rs

vortex314 avatar Oct 01 '23 21:10 vortex314

I haven't touched this in five years. Feel free to send a PR and maybe some people can look at it.

thejpster avatar Oct 03 '23 19:10 thejpster