Switch to uint8_t * instead.
Signed-off-by: Keith Packard <keithp@keithp.com>
#include <ao_storage.h>
uint8_t
#include <ao_storage.h>
uint8_t
-ao_storage_read(ao_pos_t pos, void *buf, uint16_t len)
+ao_storage_read(ao_pos_t pos, void *v_buf, uint16_t len)
-#ifdef CC1111
- return ao_storage_device_read(pos, buf, len);
-#else
uint16_t this_len;
uint16_t this_off;
uint16_t this_len;
uint16_t this_off;
pos += this_len;
}
return 1;
pos += this_len;
}
return 1;
-ao_storage_write(ao_pos_t pos, void *buf, uint16_t len)
+ao_storage_write(ao_pos_t pos, void *v_buf, uint16_t len)
-#ifdef CC1111
- return ao_storage_device_write(pos, buf, len);
-#else
uint16_t this_len;
uint16_t this_off;
uint16_t this_len;
uint16_t this_off;
pos += this_len;
}
return 1;
pos += this_len;
}
return 1;
}
static uint8_t storage_data[128];
}
static uint8_t storage_data[128];