FlashIAP: Add explicit read function to flash_api.h
On some platforms, the in-application memory is not memory mapped
and therefore cannot be accessed using memcpy.

The flash_read function added to flash_api.h (with a weak
implementation using memcpy in mbed_flash_api.c) can be used for
reading data from areas that are not memory mapped.
ls
1 parent 1af8aef commit abca2ca48b5cef84f518de77df7eb5c65dd21396
@Marcus Chang Marcus Chang authored on 6 Jul 2017
Showing 3 changed files
View
drivers/FlashIAP.cpp
View
hal/flash_api.h
View
hal/mbed_flash_api.c 0 → 100644