From 7e26f31e221665ee059b02fc6beda025d39d6e75 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sun, 13 Dec 2020 16:35:58 +1300 Subject: Initial prototype 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. --- util.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 util.h (limited to 'util.h') diff --git a/util.h b/util.h new file mode 100644 index 0000000..49812b9 --- /dev/null +++ b/util.h @@ -0,0 +1,7 @@ +#pragma once + +#include + +float pressure_to_metres_asl(float real, float setting); +void blank_to_eol(char *line, size_t len); +void split_float(float input, int *integer_part, float *float_part); -- cgit v1.1