projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Assume all LPC products will have 32KB of flash
[fw/altos]
/
src
/
micropeak
/
ao_pins.h
diff --git
a/src/micropeak/ao_pins.h
b/src/micropeak/ao_pins.h
index 257b8694bc3c6301ecea048660dd3c1602e90df0..63e9cb1b26663ce0259d2134003d8fa334b54ae0 100644
(file)
--- a/
src/micropeak/ao_pins.h
+++ b/
src/micropeak/ao_pins.h
@@
-57,8
+57,9
@@
#define I2C_PIN_SDA PINB0
#define AO_CONST_ATTRIB PROGMEM
#define I2C_PIN_SDA PINB0
#define AO_CONST_ATTRIB PROGMEM
+typedef int32_t alt_t;
#define FETCH_ALT(o) ((alt_t) pgm_read_dword(&altitude_table[o]))
#define FETCH_ALT(o) ((alt_t) pgm_read_dword(&altitude_table[o]))
-#define AO_ALT_VALUE(x) ((x) * 10)
+#define AO_ALT_VALUE(x) ((x) *
(alt_t)
10)
#endif /* _AO_PINS_H_ */
#endif /* _AO_PINS_H_ */