gfroerli / firmware

Firmware for the water temperature sensor project
GNU General Public License v3.0
6 stars 1 forks source link

Port to RTFM #57

Closed dbrgn closed 4 years ago

dbrgn commented 4 years ago

RTFM should enable cleaner resource management and interrupt handling.

For now I did not set up the task scheduling system. For this we would need a monotonic timer. The STM32L071 only has 16 bit timers, so for high resolution we would have to tie together two timers in master-slave mode to get 32 bits of precision. However, we don't really need it, we can simply use the timer directly instead (for stuff like blinking LEDs).