rust-embedded-community / tm4c-hal

An Embedded HAL and general chip support for the TM4C123/LM4F120. Replaces the old lm4f120 crate.
Apache License 2.0
40 stars 27 forks source link

Missing MonoTimer:new as pub fn #55

Open vortex314 opened 1 year ago

vortex314 commented 1 year ago

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

thejpster commented 1 year ago

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