Used for TeleGPS, just exposes the necessary log writing function
without also including the ADC writing code.
Signed-off-by: Keith Packard <keithp@keithp.com>
ao_cmd_register(&ao_log_cmds[0]);
ao_cmd_register(&ao_log_cmds[0]);
+#ifndef HAS_ADC
+#error Define HAS_ADC for ao_log.c
+#endif
+#if HAS_ADC
/* Create a task to log events to eeprom */
ao_add_task(&ao_log_task, ao_log, "log");
/* Create a task to log events to eeprom */
ao_add_task(&ao_log_task, ao_log, "log");
static __data uint8_t ao_log_data_pos;
/* a hack to make sure that ao_log_megas fill the eeprom block in even units */
static __data uint8_t ao_log_data_pos;
/* a hack to make sure that ao_log_megas fill the eeprom block in even units */
ao_sleep(&ao_log_running);
}
}
ao_sleep(&ao_log_running);
}
}
uint16_t
ao_log_flight(uint8_t slot)
uint16_t
ao_log_flight(uint8_t slot)