1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/drivers/periph_common/Kconfig.flashpage
Koen Zandberg 41bbaa7442
flashpage: Make pagewise API optional
flashpage currently requires pagewise implementation with an optional
extension for per block writes (flashpage_raw). Most implementations
with flashpage_raw implement the pagewise access via the flashpage_raw
functions. This commit makes the flashpage raw the main access method
and adds an extension feature for the pagewise access.

The functions and defines are renamed to reflect this. The API is also
extended with a dedicated function for erasing a sector.
2020-11-11 22:26:33 +01:00

41 lines
1.4 KiB
Plaintext

# Copyright (c) 2020 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
menuconfig MODULE_PERIPH_FLASHPAGE
bool "Flashpage peripheral driver"
depends on HAS_PERIPH_FLASHPAGE
select MODULE_PERIPH_COMMON
# TODO: the 'init' modules are actually just artifacts from the way
# periph_init_% modules are handled in Makefile. We need to define them to keep
# the list the same for now. We should be able to remove them later on.
config MODULE_PERIPH_INIT_FLASHPAGE
bool "Auto initialize Flashpage peripheral"
default y if MODULE_PERIPH_INIT
depends on MODULE_PERIPH_FLASHPAGE
config MODULE_PERIPH_FLASHPAGE_PAGEWISE
bool "Pagewise writing support"
depends on HAS_PERIPH_FLASHPAGE_PAGEWISE
depends on MODULE_PERIPH_FLASHPAGE
config MODULE_PERIPH_INIT_FLASHPAGE_PAGEWISE
bool "Auto initialize Flashpage pagewise"
default y if MODULE_PERIPH_INIT
depends on MODULE_PERIPH_FLASHPAGE_PAGEWISE
config MODULE_PERIPH_FLASHPAGE_RWEE
bool "Read while Write support"
depends on HAS_PERIPH_FLASHPAGE_RWEE
depends on MODULE_PERIPH_FLASHPAGE
config MODULE_PERIPH_INIT_FLASHPAGE_RWEE
bool "Auto initialize Flashpage RWEE"
default y if MODULE_PERIPH_INIT
depends on MODULE_PERIPH_FLASHPAGE_RWEE