Allow use of regular serial API for sending data.
Allow application to specify different storage size.
Signed-off-by: Keith Packard <keithp@keithp.com>
#include <ao.h>
#include <ao_micropeak.h>
#include <ao_log_micro.h>
+#ifndef ao_async_byte
#include <ao_async.h>
+#else
+#include <ao_serial.h>
+#endif
+#include <ao_storage.h>
static uint16_t ao_log_offset = STARTING_LOG_OFFSET;
#define PA_MIN_OFFSET 4
#define N_SAMPLES_OFFSET 8
#define STARTING_LOG_OFFSET 10
+#ifndef MAX_LOG_OFFSET
#define MAX_LOG_OFFSET 512
+#endif
void
ao_log_micro_save(void);