| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Also includes WIP data manager code.
|
| |
|
|
|
|
|
| |
I hadn't realised there is a float-enabled printf implementation in AVR libc,
so let's use that instead of our own hack.
|
| |
|
| |
|
|
This patch adds a skeleton of AVR code for a "simulator" target (atmega2560)
and for the real intended hardware target (atmega32u4). The simulator target
is one that is supported by the QEMU AVR emulator, while the 32u4 is currently
not.
|