File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
include/zephyr/dt-bindings/pinctrl Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 7
7
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_NUMICRO_PINCTRL_H_
8
8
#define ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_NUMICRO_PINCTRL_H_
9
9
10
+ #define NUMICRO_MFP_SHIFT 0U
11
+ #define NUMICRO_MFP_MASK 0xFU
12
+ #define NUMICRO_PIN_SHIFT 4U
13
+ #define NUMICRO_PIN_MASK 0xFU
14
+ #define NUMICRO_PORT_SHIFT 8U
15
+ #define NUMICRO_PORT_MASK 0xFU
16
+
10
17
/**
11
18
* @brief Pin configuration configuration bit field.
12
19
*
20
27
* @param pin Pin (0..15)
21
28
* @param mfp Multi-function value (0..15)
22
29
*/
23
- #define NUMICRO_MFP_SHIFT 0U
24
- #define NUMICRO_MFP_MASK 0xFU
25
- #define NUMICRO_PIN_SHIFT 4U
26
- #define NUMICRO_PIN_MASK 0xFU
27
- #define NUMICRO_PORT_SHIFT 8U
28
- #define NUMICRO_PORT_MASK 0xFU
29
-
30
30
#define NUMICRO_PINMUX (port , pin , mfp ) \
31
31
(((((port) - 'A') & NUMICRO_PORT_MASK) << NUMICRO_PORT_SHIFT) | \
32
32
(((pin) & NUMICRO_PIN_MASK) << NUMICRO_PIN_SHIFT) | \
You can’t perform that action at this time.
0 commit comments