altos: Replace ao_xmem functions with direct mem calls
[fw/altos] / src / drivers / ao_25lc1024.c
index c73f54df8edaa15c7febe6e1eab4a1df4b244d42..2139dadc0e1e22e950e578022c27b0e07feb0da0 100644 (file)
@@ -169,7 +169,7 @@ ao_storage_device_write(uint32_t pos, void *buf, uint16_t len)
                        ao_ee_flush_internal();
                        ao_ee_block = block;
                }
-               ao_xmemcpy(ao_ee_data + (uint16_t) (pos & 0xff), buf, len);
+               memcpy(ao_ee_data + (uint16_t) (pos & 0xff), buf, len);
                ao_ee_block_dirty = 1;
        } ao_mutex_put(&ao_ee_mutex);
        return 1;
@@ -183,7 +183,7 @@ ao_storage_device_read(uint32_t pos, void *buf, uint16_t len)
        /* Transfer the data */
        ao_mutex_get(&ao_ee_mutex); {
                ao_ee_fill(block);
-               ao_xmemcpy(buf, ao_ee_data + (uint16_t) (pos & 0xff), len);
+               memcpy(buf, ao_ee_data + (uint16_t) (pos & 0xff), len);
        } ao_mutex_put(&ao_ee_mutex);
        return 1;
 }
@@ -202,7 +202,7 @@ ao_storage_erase(uint32_t pos)
        ao_mutex_get(&ao_ee_mutex); {
                ao_ee_flush_internal();
                ao_ee_block = (uint16_t) (pos >> EE_BLOCK_SHIFT);
-               ao_xmemset(ao_ee_data, 0xff, EE_BLOCK_SIZE);
+               memset(ao_ee_data, 0xff, EE_BLOCK_SIZE);
                ao_ee_block_dirty = 1;
        } ao_mutex_put(&ao_ee_mutex);
        return 1;