X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fkernel%2Fao_convert.c;h=f3e523ecefe02ed430b6332b5497fe7a075212eb;hp=aa9b5f484b438e0871aa395a1cd37d7979237a11;hb=8cc418ed3b0df0e465f0af27c2255cb97294e6ce;hpb=24167015705ae831692b95735968b04a876f935e diff --git a/src/kernel/ao_convert.c b/src/kernel/ao_convert.c index aa9b5f48..f3e523ec 100644 --- a/src/kernel/ao_convert.c +++ b/src/kernel/ao_convert.c @@ -3,7 +3,8 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -19,15 +20,17 @@ #include "ao.h" #endif -static const int16_t altitude_table[] = { +#include + +static const ao_v_t altitude_table[] = { #include "altitude.h" }; #define ALT_FRAC_SCALE (1 << ALT_FRAC_BITS) #define ALT_FRAC_MASK (ALT_FRAC_SCALE - 1) -int16_t -ao_pres_to_altitude(int16_t pres) __reentrant +ao_v_t +ao_pres_to_altitude(int16_t pres) { uint8_t o; int16_t part; @@ -43,9 +46,9 @@ ao_pres_to_altitude(int16_t pres) __reentrant #if AO_NEED_ALTITUDE_TO_PRES int16_t -ao_altitude_to_pres(int16_t alt) __reentrant +ao_altitude_to_pres(ao_v_t alt) { - int16_t span, sub_span; + ao_v_t span, sub_span; uint8_t l, h, m; int32_t pres; @@ -71,7 +74,7 @@ ao_altitude_to_pres(int16_t alt) __reentrant #if 0 int16_t -ao_temp_to_dC(int16_t temp) __reentrant +ao_temp_to_dC(int16_t temp) { int16_t ret;