subsys: storage: Add flash_map abstraction module

Introduce flas_map module is abstraction over flash memory and its
driver for using flash memories along with description of
available flash areas.
Module provides simple API for write/read/erase and so one.

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
This commit is contained in:
Andrzej Puzdrowski 2017-12-08 11:50:46 +01:00 committed by Anas Nashif
commit 25269fb0ed
13 changed files with 586 additions and 0 deletions

View file

@ -0,0 +1,28 @@
# Kconfig - Flash map abstraction module
#
# Copyright (c) 2017 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: Apache-2.0
#
#
# Flash map
#
menuconfig FLASH_MAP
bool
prompt "Flash map abstraction module"
default n
depends on FLASH
help
Enable support of flash map abstraction.
config FLASH_MAP_CUSTOM
bool
prompt "Custom flash map description"
default n
depends on FLASH_MAP
help
This option enables custom flash map description.
User must provide such a description in place of default on
if had enabled this option.