From 27d6d2fc5a1647395a7a9074faf8362d6d0c358a Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sat, 20 Feb 2021 17:43:24 +1300 Subject: Use more generic interface for barometer and timer 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. --- chibios | 1 + 1 file changed, 1 insertion(+) create mode 160000 chibios (limited to 'chibios') diff --git a/chibios b/chibios new file mode 160000 index 0000000..1ce430e --- /dev/null +++ b/chibios @@ -0,0 +1 @@ +Subproject commit 1ce430e49350e38bf02dfc7c58920c345e384a30 -- cgit v1.1