<feed xmlns='http://www.w3.org/2005/Atom'>
<title>altimeter/chibios, branch master</title>
<subtitle>AVR code for an in-progress pressure altimeter</subtitle>
<link rel='alternate' type='text/html' href='https://git.nah.nz/altimeter/'/>
<entry>
<title>Use more generic interface for barometer and timer</title>
<updated>2021-02-27T08:54:56+00:00</updated>
<author>
<name>David Phillips</name>
<email>david@yeah.nah.nz</email>
</author>
<published>2021-02-20T04:43:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.nah.nz/altimeter/commit/?id=27d6d2fc5a1647395a7a9074faf8362d6d0c358a'/>
<id>27d6d2fc5a1647395a7a9074faf8362d6d0c358a</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
</feed>
