Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
rv32m1-pinctrl.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022 Henrik Brix Andersen <henrik@brixandersen.dk>
3 * Copyright (c) 2022 NXP
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef _ZEPHYR_DT_BINDINGS_PINCTRL_RV32M1_PINCTRL_
8#define _ZEPHYR_DT_BINDINGS_PINCTRL_RV32M1_PINCTRL_
9
17#define RV32M1_MUX(port, pin, mux) \
18 (((((port) - 'A') & 0xF) << 28) | \
19 (((pin) & 0x3F) << 22) | \
20 (((mux) & 0x7) << 8))
21
22#endif /* _ZEPHYR_DT_BINDINGS_PINCTRL_RV32M1_PINCTRL_ */