Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
hwspinlock.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Sequans Communications
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
11
12#ifndef ZEPHYR_INCLUDE_DEVICETREE_HWSPINLOCK_H_
13#define ZEPHYR_INCLUDE_DEVICETREE_HWSPINLOCK_H_
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
24
51#define DT_HWSPINLOCK_CTRL_BY_IDX(node_id, idx) \
52 DT_PHANDLE_BY_IDX(node_id, hwlocks, idx)
53
82#define DT_HWSPINLOCK_CTRL_BY_NAME(node_id, name) \
83 DT_PHANDLE_BY_NAME(node_id, hwlocks, name)
84
119#define DT_HWSPINLOCK_ID_BY_NAME(node_id, name) \
120 DT_PHA_BY_NAME(node_id, hwlocks, name, id)
121
149#define DT_HWSPINLOCK_ID_BY_IDX(node_id, idx) \
150 DT_PHA_BY_IDX(node_id, hwlocks, idx, id)
151
155
156#ifdef __cplusplus
157}
158#endif
159
160#endif /* ZEPHYR_INCLUDE_DEVICETREE_HWSPINLOCK_H_ */