STM32GENERIC
STM32GENERIC copied to clipboard
timer library
trafficstars
will be perfect to have a timer library like the lib-maple one also to run https://github.com/bubulindo/STM32Encoder also have full control on the timers in the chip
On one hand, a simple "I want to run this code every x microseconds" timer would be good.
IntervalTimer API is very nice for that. Or even just scheduleRepeated(microseconds, callback). Much simpler than trying to do the same with libmaple HardwareTimer.
On the other hand, a class like HardwareTimer to access more functionality of the chip can be done too.
A very good starting point could be the timer HAL example which could be directly used for that purpose.