stm32f4xx-hal
stm32f4xx-hal copied to clipboard
System time based on static systick isr counter
I added this to the hal while playing with it. Maybe it fits the upstream :)
Maybe this could just be an example without changes to the hal?
Maybe this could just be an example without changes to the hal?
That is definitely possible. I was actually thinking about implementing a general "tick" counter crate a while back; something that you would initialise and then feed with monotonic counter updates which could be used for all kinds of purposes, e.g. a delay implementation.