Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
wuc_nxp_s32_wkpu.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: Copyright 2026 NXP
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_WUC_WUC_NXP_S32_WKPU_H_
7#define ZEPHYR_INCLUDE_DT_BINDINGS_WUC_WUC_NXP_S32_WKPU_H_
8
9#define NXP_S32_WKPU_EDGE_RISING 1
10#define NXP_S32_WKPU_EDGE_FALLING 2
11#define NXP_S32_WKPU_EDGE_BOTH 3
12
13/*
14 * Bits [7:0] are the hardware source number; bits [9:8] select rising (1),
15 * falling (2), or both (3) edges. Other bits must be zero. Sources 0-3 are
16 * internal and support rising edges only. A source number is not a GPIO
17 * pin index or CPU interrupt number.
18 */
19#define NXP_S32_WKPU_SOURCE(source, edge) (((edge) << 8) | (source))
20#define NXP_S32_WKPU_SOURCE_INDEX(id) ((id) & 0xff)
21#define NXP_S32_WKPU_SOURCE_EDGE(id) (((id) >> 8) & 0x3)
22
23#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_WUC_WUC_NXP_S32_WKPU_H_ */