aconno flash API for nrf52832. (Modified mbed flash API)

readme.me

Committer:
Dominik Bartolovic
Date:
2018-12-14
Revision:
3:2852a2090e7b

File content as of revision 3:2852a2090e7b:

#Introduction

Aconno library for flash read/write.

#Usage

To initialize this flash library call:

int32_t aconno_flash_init(flash_t *obj)

To read from flash:

int32_t aconno_flash_read(flash_t *obj, uint32_t address, uint8_t *data, uint32_t size)

To erase memory section(more than 4 bytes!!!):

int32_t aconno_flash_erase_sector(flash_t *obj, uint32_t address)

To write to flash use:

int32_t aconno_flash_program_page(flash_t *obj, uint32_t address, const uint8_t *data, uint32_t size)

NOTE: data pointer has to be 4 aligned
      pages should not cross multiple sectors