20#ifndef MBED_FLASH_API_H
21#define MBED_FLASH_API_H
28#define MBED_FLASH_INVALID_SIZE 0xFFFFFFFF
32#if TARGET_FLASH_CMSIS_ALGO
33#include "flash_data.h"
uint8_t flash_get_erase_value(const flash_t *obj)
Get the flash erase value.
int32_t flash_program_page(flash_t *obj, uint32_t address, const uint8_t *data, uint32_t size)
Program pages starting at defined address.
uint32_t flash_get_size(const flash_t *obj)
Get the flash region size.
int32_t flash_init(flash_t *obj)
Initialize the flash peripheral and the flash_t object.
int32_t flash_erase_sector(flash_t *obj, uint32_t address)
Erase one sector starting at defined address.
uint32_t flash_get_page_size(const flash_t *obj)
Get page size.
uint32_t flash_get_start_address(const flash_t *obj)
Get start address for the flash region (as in, where the flash is mapped in main memory).
uint32_t flash_get_sector_size(const flash_t *obj, uint32_t address)
Get sector size.
int32_t flash_free(flash_t *obj)
Uninitialize the flash peripheral and the flash_t object.
int32_t flash_read(flash_t *obj, uint32_t address, uint8_t *data, uint32_t size)
Read data starting at defined address.
Target flash configuration For targets not supporting TrustZone, its flash_set_target_config must def...