Пример #1
0
/**
 * Reads a byte from memory. Addr doesn't need to be word aligned and len doesn't need to be a multiple of 4.
 */
void jshFlashRead(void * buf, uint32_t addr, uint32_t len)
{
  uint8_t * read_buf = buf;
  nrf_utils_read_flash_bytes(read_buf, addr, len);
}
Пример #2
0
/// Read data from flash memory into the buffer
void jshFlashRead(void *buf, uint32_t addr, uint32_t len)
{
  nrf_utils_read_flash_bytes((uint8_t *) buf, addr, len);
  //nrf_utils_read_flash_addresses(buf, addr, len);
}