1# 2# Copyright (c) 2020 Nordic Semiconductor ASA 3# 4# SPDX-License-Identifier: Apache-2.0 5# 6 7menuconfig STREAM_FLASH 8 bool "Stream to flash" 9 select FLASH_PAGE_LAYOUT 10 help 11 Enable support of stream to flash API 12 13if STREAM_FLASH 14 15config STREAM_FLASH_POST_WRITE_CALLBACK 16 bool "Write complete callback" 17 default y 18 help 19 Enable callback that will be invoked once data is synchronized from 20 stream to device. When callback is not used, disabling the option 21 allows to save some code storage and RAM. 22 23config STREAM_FLASH_ERASE 24 bool "Perform erase operations" 25 depends on FLASH_HAS_EXPLICIT_ERASE 26 help 27 If disabled an external actor must erase the flash area being written 28 to. 29 30config STREAM_FLASH_PROGRESS 31 bool "Persistent stream write progress" 32 depends on SETTINGS 33 depends on !SETTINGS_NONE 34 help 35 Enable API for loading and storing the current write progress to flash 36 using the settings subsystem. In case of power failure or device 37 reset, the API can be used to resume writing from the latest state. 38 39module = STREAM_FLASH 40module-str = stream flash 41source "subsys/logging/Kconfig.template.log_config" 42 43endif # STREAM_FLASH 44