aboutsummaryrefslogtreecommitdiff
path: root/data_manager.c
Commit message (Collapse)AuthorAge
* Make timer mandatory for data managerDavid Phillips2021-02-27
| | | | | | The NULL check was a bit of a hack to get the test building. Probably a bad idea to leave it around, since there's no time it's sane to leave the timestamps on data manager contexts unset.
* 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.
* Implement barometer reset/initDavid Phillips2021-02-14
|
* Refactor data_manager to use contextsDavid Phillips2021-02-14
| | | | | | This should be more testable and flexible. Note that the barometer has internal non-resettable state which enforces a certain test order. This should be fixed soon.
* Tick data manager on initDavid Phillips2021-02-13
|
* Initialise data manager with ISA pressureDavid Phillips2021-02-13
|
* Add dep files to MakefileDavid Phillips2021-02-13
Also includes WIP data manager code.