aboutsummaryrefslogtreecommitdiff
path: root/chibios
Commit message (Collapse)AuthorAge
* Use more generic interface for barometer and timerDavid Phillips2021-02-27
This patch abstracts the global symbols for getting barometer readings behind a "struct of function pointers" interface as popular in Linux Kernel, U-Boot and others. This means that unit testing can take place with mocked hardware peripherals. The old "global" drivers are still available, behind explicit function calls required to access the now-static functions. This patch also introduces a timer peripheral software module with the same model, to support future unit testing of altitude rate etc.