Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
nrf_retained_mem.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_DRIVERS_RETAINED_MEM_NRF_RETAINED_MEM_H
8#define ZEPHYR_INCLUDE_DRIVERS_RETAINED_MEM_NRF_RETAINED_MEM_H
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
15
16#if defined(CONFIG_RETAINED_MEM_NRF_RAM_CTRL) || defined(__DOXYGEN__)
24int z_nrf_retained_mem_retention_apply(void);
25#else
26static inline int z_nrf_retained_mem_retention_apply(void)
27{
28 return -ENOTSUP;
29}
30#endif
31
32#ifdef __cplusplus
33}
34#endif
35
36#endif /* ZEPHYR_INCLUDE_DRIVERS_RETAINED_MEM_NRF_RETAINED_MEM_H */
#define ENOTSUP
Unsupported value.
Definition errno.h:114
Public API for retained memory drivers.