Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
sram.h
Go to the documentation of this file.
1
5
6/*
7 * Copyright (c) 2026 Nordic Semiconductor ASA
8 *
9 * SPDX-License-Identifier: Apache-2.0
10 */
11
12#ifndef ZEPHYR_INCLUDE_DEVICETREE_SRAM_H_
13#define ZEPHYR_INCLUDE_DEVICETREE_SRAM_H_
14
15#ifdef CONFIG_SRAM_DEPRECATED_KCONFIG_SET
16#include <zephyr/sys/util.h>
17#endif
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
28
34#ifdef CONFIG_SRAM_DEPRECATED_KCONFIG_SET
35#define DT_CHOSEN_SRAM_ADDR CONFIG_SRAM_BASE_ADDRESS
36#else
37#define DT_CHOSEN_SRAM_ADDR DT_REG_ADDR(DT_CHOSEN(zephyr_sram))
38#endif
39
45#ifdef CONFIG_SRAM_DEPRECATED_KCONFIG_SET
46#define DT_CHOSEN_SRAM_SIZE (CONFIG_SRAM_SIZE * 1024)
47#else
48#define DT_CHOSEN_SRAM_SIZE DT_REG_SIZE(DT_CHOSEN(zephyr_sram))
49#endif
50
54
55#ifdef __cplusplus
56}
57#endif
58
59#endif /* ZEPHYR_INCLUDE_DEVICETREE_SRAM_H_ */
Misc utilities.