Zephyr Project API 4.4.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__)
25int z_nrf_retained_mem_retention_apply(void);
26#else
27static inline int z_nrf_retained_mem_retention_apply(void)
28{
29 return -ENOTSUP;
30}
31#endif
32
33#ifdef __cplusplus
34}
35#endif
36
37#endif /* ZEPHYR_INCLUDE_DRIVERS_RETAINED_MEM_NRF_RETAINED_MEM_H */
#define ENOTSUP
Unsupported value.
Definition errno.h:115
Main header file for retained memory driver API.