diff options
author | Keith Packard <keithp@keithp.com> | 2019-09-15 17:09:26 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2019-09-15 17:09:26 -0700 |
commit | 99525a748e00406424b98a0952f0156437b30b6c (patch) | |
tree | c71afba2173632314441f89325594774d6123d70 /src/drivers/ao_at45db161d.c | |
parent | 46d3cbadce6808b4cd29ad1e034efac7b5e4fa42 (diff) |
altos: Replace ao_xmem functions with direct mem calls
We no longer need to wrap these functions
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_at45db161d.c')
-rw-r--r-- | src/drivers/ao_at45db161d.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/ao_at45db161d.c b/src/drivers/ao_at45db161d.c index 516811b8..e04baaf6 100644 --- a/src/drivers/ao_at45db161d.c +++ b/src/drivers/ao_at45db161d.c @@ -246,7 +246,7 @@ ao_storage_device_write(uint32_t pos, void *buf, uint16_t len) ao_flash_flush_internal(); ao_flash_block = block; } - ao_xmemcpy(ao_flash_data + (uint16_t) (pos & ao_flash_block_mask), + memcpy(ao_flash_data + (uint16_t) (pos & ao_flash_block_mask), buf, len); ao_flash_block_dirty = 1; @@ -262,7 +262,7 @@ ao_storage_device_read(uint32_t pos, void *buf, uint16_t len) /* Transfer the data */ ao_mutex_get(&ao_flash_mutex); { ao_flash_fill(block); - ao_xmemcpy(buf, + memcpy(buf, ao_flash_data + (uint16_t) (pos & ao_flash_block_mask), len); } ao_mutex_put(&ao_flash_mutex); @@ -283,7 +283,7 @@ ao_storage_erase(uint32_t pos) ao_mutex_get(&ao_flash_mutex); { ao_flash_flush_internal(); ao_flash_block = (uint16_t) (pos >> ao_flash_block_shift); - ao_xmemset(ao_flash_data, 0xff, ao_flash_block_size); + memset(ao_flash_data, 0xff, ao_flash_block_size); ao_flash_block_dirty = 1; } ao_mutex_put(&ao_flash_mutex); return 1; |