Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mspm0-pinctrl.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Texas Instruments
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_MSPM0_PINCTRL_H_
8#define ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_MSPM0_PINCTRL_H_
9
10#define MSPM0_PIN_FUNCTION_ANALOG (0x00000000)
11#define MSPM0_PIN_FUNCTION_GPIO (0x00000001)
12#define MSPM0_PIN_FUNCTION_2 (0x00000002)
13#define MSPM0_PIN_FUNCTION_3 (0x00000003)
14#define MSPM0_PIN_FUNCTION_4 (0x00000004)
15#define MSPM0_PIN_FUNCTION_5 (0x00000005)
16#define MSPM0_PIN_FUNCTION_6 (0x00000006)
17#define MSPM0_PIN_FUNCTION_7 (0x00000007)
18#define MSPM0_PIN_FUNCTION_8 (0x00000008)
19#define MSPM0_PIN_FUNCTION_9 (0x00000009)
20#define MSPM0_PIN_FUNCTION_10 (0x0000000A)
21#define MSPM0_PIN_FUNCTION_11 (0x0000000B)
22#define MSPM0_PIN_FUNCTION_12 (0x0000000C)
23#define MSPM0_PIN_FUNCTION_13 (0x0000000D)
24#define MSPM0_PIN_FUNCTION_14 (0x0000000E)
25#define MSPM0_PIN_FUNCTION_15 (0x0000000F)
26
27/* Creates a concatenation of the correct pin function based on the pin control
28 * management register offset and the function suffix.
29 */
30#define MSP_PINMUX(pincm, function) (((pincm - 1) << 0x10) | function)
31
32#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_MSPM0_PINCTRL_H_ */