2023-02-22 20:34:27 +08:00
|
|
|
# Copyright (c) Nordic Semiconductor ASA
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
menuconfig RETAINED_MEM
|
2023-03-27 20:55:23 +08:00
|
|
|
bool "Retained memory drivers"
|
2023-02-22 20:34:27 +08:00
|
|
|
help
|
|
|
|
Enables support for drivers that can retain their data whilst the
|
|
|
|
device is powered (may be lost in low power states).
|
|
|
|
|
|
|
|
if RETAINED_MEM
|
|
|
|
|
|
|
|
config RETAINED_MEM_INIT_PRIORITY
|
|
|
|
int "Retained memory devices init priority"
|
|
|
|
default 40
|
|
|
|
help
|
|
|
|
Retained memory devices initialization priority,
|
|
|
|
|
2023-04-06 19:12:52 +08:00
|
|
|
config RETAINED_MEM_MUTEXES
|
2023-06-15 18:07:39 +08:00
|
|
|
bool
|
2023-04-06 19:12:52 +08:00
|
|
|
default y
|
|
|
|
depends on MULTITHREADING
|
2023-06-15 18:07:39 +08:00
|
|
|
depends on !RETAINED_MEM_MUTEX_FORCE_DISABLE
|
|
|
|
|
|
|
|
config RETAINED_MEM_MUTEX_FORCE_DISABLE
|
|
|
|
bool "Disable retained memory mutex support"
|
|
|
|
depends on MULTITHREADING
|
2023-04-06 19:12:52 +08:00
|
|
|
help
|
2023-06-15 18:07:39 +08:00
|
|
|
Disable use of mutexes which prevent issues with concurrent retained
|
|
|
|
memory access. This option should only be enabled when retained
|
|
|
|
memory access is required in an ISR or for special use cases.
|
2023-04-06 19:12:52 +08:00
|
|
|
|
2023-02-22 20:34:27 +08:00
|
|
|
module = RETAINED_MEM
|
|
|
|
module-str = retained_mem
|
|
|
|
source "subsys/logging/Kconfig.template.log_config"
|
|
|
|
|
2023-02-22 20:54:13 +08:00
|
|
|
source "drivers/retained_mem/Kconfig.nrf"
|
|
|
|
|
2023-02-22 21:29:37 +08:00
|
|
|
source "drivers/retained_mem/Kconfig.zephyr"
|
|
|
|
|
2023-02-22 20:34:27 +08:00
|
|
|
endif # RETAINED_MEM
|