Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
romstart.h
Go to the documentation of this file.
1
5
6/*
7 * SPDX-FileCopyrightText: Copyright The Zephyr Project Contributors
8 * SPDX-FileCopyrightText: Copyright 2026 Siemens Mobility GmbH
9 *
10 * SPDX-License-Identifier: Apache-2.0
11 */
12
13#ifndef ZEPHYR_INCLUDE_DEVICETREE_ROMSTART_H_
14#define ZEPHYR_INCLUDE_DEVICETREE_ROMSTART_H_
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
25
31#define DT_CHOSEN_ROMSTART_EXISTS DT_NODE_EXISTS(DT_CHOSEN(zephyr_romstart))
32
38#define DT_ROMSTART_REGION DT_STRING_TOKEN(DT_CHOSEN(zephyr_romstart), zephyr_memory_region)
39
43
44/* This can't be a BUILD_ASSERT since linker doesn't support static asserts */
45#if DT_CHOSEN_ROMSTART_EXISTS && !DT_NODE_HAS_PROP(DT_CHOSEN(zephyr_romstart), zephyr_memory_region)
46#error "The chosen romstart property references a node that doesn't have a 'zephyr,memory-region'" \
47 "compatible string and property to create a new linker script memory region"
48#endif
49
50#ifdef __cplusplus
51}
52#endif
53
54#endif /* ZEPHYR_INCLUDE_DEVICETREE_ROMSTART_H_ */