summaryrefslogtreecommitdiff
path: root/src/ao_host.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-02-20 20:22:16 -0800
committerKeith Packard <keithp@keithp.com>2010-02-20 20:30:27 -0800
commit84c93bb2fc4558a5e4654794ba90e730a84eaf67 (patch)
tree4d279672734ec5c3e50976917ccbf33a306a740d /src/ao_host.h
parentfd0a42e0e96dcb8ecc9e999f70bcf70692692af9 (diff)
Change altos build process to support per-product compile-time changes
This creates per-product subdirectories and recompiles everything for each product, allowing per-product compile-time changes for things like peripheral pin assignments and attached serial devices. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_host.h')
-rw-r--r--src/ao_host.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/ao_host.h b/src/ao_host.h
index 6b42f9f9..fa03a910 100644
--- a/src/ao_host.h
+++ b/src/ao_host.h
@@ -117,30 +117,6 @@ struct ao_cmds {
};
-static int16_t altitude_table[2048] = {
-#include "altitude.h"
-};
-
-int16_t
-ao_pres_to_altitude(int16_t pres) __reentrant
-{
- pres = pres >> 4;
- if (pres < 0) pres = 0;
- if (pres > 2047) pres = 2047;
- return altitude_table[pres];
-}
-
-int16_t
-ao_altitude_to_pres(int16_t alt) __reentrant
-{
- int16_t pres;
-
- for (pres = 0; pres < 2047; pres++)
- if (altitude_table[pres] <= alt)
- break;
- return pres << 4;
-}
-
struct ao_config {
uint16_t main_deploy;
int16_t accel_zero_g;