diff options
author | Keith Packard <keithp@keithp.com> | 2017-04-27 23:52:29 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-04-27 23:52:29 -0700 |
commit | 8c755f52db40bb845ab236ff400f35888053e616 (patch) | |
tree | 780dda45a811cf6802b3559600228a65830a472d /src/kernel/ao_log_micro.c | |
parent | 2245d9e3178404a49a6787656319fa13f0cc1a51 (diff) |
altos: Adapt micro log to MicroPeak V3
Allow use of regular serial API for sending data.
Allow application to specify different storage size.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel/ao_log_micro.c')
-rw-r--r-- | src/kernel/ao_log_micro.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/kernel/ao_log_micro.c b/src/kernel/ao_log_micro.c index aa0f5c76..d6f9c5a8 100644 --- a/src/kernel/ao_log_micro.c +++ b/src/kernel/ao_log_micro.c @@ -19,7 +19,12 @@ #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; |