diff options
author | Keith Packard <keithp@keithp.com> | 2018-08-15 17:34:20 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2018-10-13 08:22:50 -0700 |
commit | 6023ff81f1bbd240169b9548209133d3b02d475f (patch) | |
tree | 4526e7ac4386cbd73ebea1d896548dd2997d2bbb /src/kernel/ao_log_tiny.c | |
parent | e2e2182a6ae6c8a7290fb5f7bbb7f8e0a863ba99 (diff) |
altos: Remove *_TO_DATA macros
Now that we don't support 8051, we don't need these
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel/ao_log_tiny.c')
-rw-r--r-- | src/kernel/ao_log_tiny.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/ao_log_tiny.c b/src/kernel/ao_log_tiny.c index 0b8e39d6..046b7b20 100644 --- a/src/kernel/ao_log_tiny.c +++ b/src/kernel/ao_log_tiny.c @@ -41,7 +41,7 @@ static void ao_log_tiny_data(uint16_t d) if (ao_log_current_pos >= ao_log_end_pos && ao_log_running) ao_log_stop(); if (ao_log_running) { - ao_storage_write(ao_log_current_pos, DATA_TO_XDATA(&d), 2); + ao_storage_write(ao_log_current_pos, &d, 2); ao_log_current_pos += 2; } } @@ -102,7 +102,7 @@ ao_log(void) /* * Add in pending sample data */ - ao_sleep(DATA_TO_XDATA(&ao_sample_data)); + ao_sleep(&ao_sample_data); while (ao_log_data != ao_sample_data) { sum += ao_data_pres(&ao_data_ring[ao_log_data]); count++; |