Zephyr API Documentation
4.1.99
A Scalable Open Source RTOS
4.1.99
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
u
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
▼
Zephyr API Documentation
►
Introduction
Deprecated List
►
Topics
►
Data Structures
▼
Files
▼
File List
►
doc
►
kernel
►
lib
►
subsys
▼
zephyr
►
acpi
►
app_memory
►
arch
►
audio
►
bluetooth
►
canbus
►
console
►
crypto
►
data
►
debug
►
devicetree
►
dfu
►
display
►
drivers
►
dsp
▼
dt-bindings
►
acpi
►
adc
►
battery
►
clock
►
comparator
►
dac
►
dai
►
display
►
dma
►
espi
►
ethernet
►
flash_controller
►
gnss
►
gpio
►
i2c
►
input
►
inputmux
►
interrupt-controller
►
ipc_service
►
led
►
lora
►
lvgl
►
memory-attr
►
memory-controller
►
mfd
►
mipi_dbi
►
mipi_dsi
►
misc
►
pcie
▼
pinctrl
►
renesas
►
silabs
►
ambiq-apollo3-pinctrl.h
►
ambiq-apollo4-pinctrl.h
►
ambiq-apollo5-pinctrl.h
►
arm-mps2-pinctrl.h
►
arm-mps3-pinctrl.h
►
arm-v2m_beetle-pinctrl.h
►
b91-pinctrl.h
►
cc13xx_cc26xx-pinctrl.h
►
cc23x0-pinctrl.h
►
ch32v003-pinctrl.h
►
ch32v00x-pinctrl.h
►
ch32v20x_30x-pinctrl.h
►
emsdp-pinctrl.h
►
ene-kb1200-pinctrl.h
►
esp-pinctrl-common.h
►
esp32-gpio-sigmap.h
►
esp32-pinctrl.h
►
esp32c2-gpio-sigmap.h
►
esp32c2-pinctrl.h
►
esp32c3-gpio-sigmap.h
►
esp32c3-pinctrl.h
►
esp32c6-gpio-sigmap.h
►
esp32c6-pinctrl.h
►
esp32s2-gpio-sigmap.h
►
esp32s2-pinctrl.h
►
esp32s3-gpio-sigmap.h
►
esp32s3-pinctrl.h
►
gecko-pinctrl-s1.h
►
gecko-pinctrl.h
►
ifx_cat1-pinctrl.h
►
imx8qm-pinctrl.h
►
imx8qxp-pinctrl.h
►
it8xxx2-pinctrl.h
►
lpc11u6x-pinctrl.h
►
max32-pinctrl.h
►
mchp-xec-pinctrl.h
npcx-pinctrl.h
►
nrf-pinctrl.h
►
numaker-m46x-pinctrl.h
►
numicro-pinctrl.h
►
nxp-s32-pinctrl.h
►
pinctrl-zynq.h
►
pinctrl-zynqmp.h
►
quicklogic-eos-s3-pinctrl.h
►
realtek-rts5912-pinctrl.h
►
renesas-rzt2m-pinctrl.h
►
rpi-pico-pinctrl-common.h
►
rpi-pico-rp2040-pinctrl.h
►
rpi-pico-rp2350-pinctrl-common.h
►
rpi-pico-rp2350a-pinctrl.h
►
rpi-pico-rp2350b-pinctrl.h
►
rv32m1-pinctrl.h
►
si32-pinctrl.h
►
sifive-pinctrl.h
►
silabs-pinctrl-dbus.h
►
silabs-pinctrl-siwx91x.h
►
smartbond-pinctrl.h
►
stm32-pinctrl-common.h
►
stm32-pinctrl.h
►
stm32f1-afio.h
►
stm32f1-pinctrl.h
►
sy1xx-pinctrl.h
►
ti-cc32xx-pinctrl.h
►
ti-k3-pinctrl.h
►
xmc4xxx-pinctrl.h
►
power
►
pwm
►
qspi
►
rdc
►
regulator
►
reserved-memory
►
reset
►
sensor
►
spi
►
timer
►
usb
►
usb-c
►
video
dt-util.h
►
fs
►
input
►
internal
►
ipc
►
kernel
►
linker
►
llext
►
logging
►
lorawan
►
math
►
mem_mgmt
►
mgmt
►
misc
►
modbus
►
modem
►
multi_heap
►
net
►
platform
►
pm
►
pmci
►
portability
►
posix
►
psa
►
random
►
retention
►
rtio
►
sd
►
sensing
►
settings
►
shell
►
sip_svc
►
stats
►
storage
►
sys
►
task_wdt
►
timing
►
toolchain
►
tracing
►
usb
►
usb_c
►
xen
►
zbus
►
zvfs
►
bindesc.h
►
cache.h
►
device.h
►
devicetree.h
►
fatal.h
►
fatal_types.h
►
init.h
►
irq.h
►
irq_multilevel.h
►
irq_nextlevel.h
►
irq_offload.h
►
kernel.h
kernel_includes.h
►
kernel_structs.h
►
kernel_version.h
►
net_buf.h
►
shared_irq.h
►
smf.h
►
spinlock.h
►
sw_isr_table.h
►
sys_clock.h
►
syscall.h
►
toolchain.h
types.h
►
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
nrf-pinctrl.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2021 Nordic Semiconductor ASA
3
* SPDX-License-Identifier: Apache-2.0
4
*/
5
6
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_NRF_PINCTRL_H_
7
#define ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_NRF_PINCTRL_H_
8
9
/*
10
* The whole nRF pin configuration information is encoded in a 32-bit bitfield
11
* organized as follows:
12
*
13
* - 31..24: Pin function.
14
* - 19-23: Reserved.
15
* - 18: Associated peripheral belongs to GD FAST ACTIVE1 (nRF54H only)
16
* - 17: Clockpin enable.
17
* - 16: Pin inversion mode.
18
* - 15: Pin low power mode.
19
* - 14..11: Pin output drive configuration.
20
* - 10..9: Pin pull configuration.
21
* - 8..0: Pin number (combination of port and pin).
22
*/
23
30
#define NRF_FUN_POS 24U
32
#define NRF_FUN_MSK 0xFFU
34
#define NRF_GPD_FAST_ACTIVE1_POS 18U
36
#define NRF_GPD_FAST_ACTIVE1_MSK 0x1U
38
#define NRF_CLOCKPIN_ENABLE_POS 17U
40
#define NRF_CLOCKPIN_ENABLE_MSK 0x1U
42
#define NRF_INVERT_POS 16U
44
#define NRF_INVERT_MSK 0x1U
46
#define NRF_LP_POS 15U
48
#define NRF_LP_MSK 0x1U
50
#define NRF_DRIVE_POS 11U
52
#define NRF_DRIVE_MSK 0xFU
54
#define NRF_PULL_POS 9U
56
#define NRF_PULL_MSK 0x3U
58
#define NRF_PIN_POS 0U
60
#define NRF_PIN_MSK 0x1FFU
61
70
#define NRF_FUN_UART_TX 0U
72
#define NRF_FUN_UART_RX 1U
74
#define NRF_FUN_UART_RTS 2U
76
#define NRF_FUN_UART_CTS 3U
78
#define NRF_FUN_SPIM_SCK 4U
80
#define NRF_FUN_SPIM_MOSI 5U
82
#define NRF_FUN_SPIM_MISO 6U
84
#define NRF_FUN_SPIS_SCK 7U
86
#define NRF_FUN_SPIS_MOSI 8U
88
#define NRF_FUN_SPIS_MISO 9U
90
#define NRF_FUN_SPIS_CSN 10U
92
#define NRF_FUN_TWIM_SCL 11U
94
#define NRF_FUN_TWIM_SDA 12U
96
#define NRF_FUN_I2S_SCK_M 13U
98
#define NRF_FUN_I2S_SCK_S 14U
100
#define NRF_FUN_I2S_LRCK_M 15U
102
#define NRF_FUN_I2S_LRCK_S 16U
104
#define NRF_FUN_I2S_SDIN 17U
106
#define NRF_FUN_I2S_SDOUT 18U
108
#define NRF_FUN_I2S_MCK 19U
110
#define NRF_FUN_PDM_CLK 20U
112
#define NRF_FUN_PDM_DIN 21U
114
#define NRF_FUN_PWM_OUT0 22U
116
#define NRF_FUN_PWM_OUT1 23U
118
#define NRF_FUN_PWM_OUT2 24U
120
#define NRF_FUN_PWM_OUT3 25U
122
#define NRF_FUN_QDEC_A 26U
124
#define NRF_FUN_QDEC_B 27U
126
#define NRF_FUN_QDEC_LED 28U
128
#define NRF_FUN_QSPI_SCK 29U
130
#define NRF_FUN_QSPI_CSN 30U
132
#define NRF_FUN_QSPI_IO0 31U
134
#define NRF_FUN_QSPI_IO1 32U
136
#define NRF_FUN_QSPI_IO2 33U
138
#define NRF_FUN_QSPI_IO3 34U
140
#define NRF_FUN_EXMIF_CK 35U
142
#define NRF_FUN_EXMIF_DQ0 36U
144
#define NRF_FUN_EXMIF_DQ1 37U
146
#define NRF_FUN_EXMIF_DQ2 38U
148
#define NRF_FUN_EXMIF_DQ3 39U
150
#define NRF_FUN_EXMIF_DQ4 40U
152
#define NRF_FUN_EXMIF_DQ5 41U
154
#define NRF_FUN_EXMIF_DQ6 42U
156
#define NRF_FUN_EXMIF_DQ7 43U
158
#define NRF_FUN_EXMIF_CS0 44U
160
#define NRF_FUN_EXMIF_CS1 45U
162
#define NRF_FUN_CAN_TX 46U
164
#define NRF_FUN_CAN_RX 47U
166
#define NRF_FUN_TWIS_SCL 48U
168
#define NRF_FUN_TWIS_SDA 49U
170
#define NRF_FUN_EXMIF_RWDS 50U
172
#define NRF_FUN_GRTC_CLKOUT_FAST 55U
174
#define NRF_FUN_GRTC_CLKOUT_32K 56U
175
184
#define NRF_DRIVE_S0S1 0U
186
#define NRF_DRIVE_H0S1 1U
188
#define NRF_DRIVE_S0H1 2U
190
#define NRF_DRIVE_H0H1 3U
192
#define NRF_DRIVE_D0S1 4U
194
#define NRF_DRIVE_D0H1 5U
196
#define NRF_DRIVE_S0D1 6U
198
#define NRF_DRIVE_H0D1 7U
200
#define NRF_DRIVE_E0E1 8U
201
211
#define NRF_PULL_NONE 0U
213
#define NRF_PULL_DOWN 1U
215
#define NRF_PULL_UP 3U
216
225
#define NRF_LP_DISABLE 0U
227
#define NRF_LP_ENABLE 1U
228
237
#define NRF_PIN_DISCONNECTED NRF_PIN_MSK
238
248
#define NRF_PSEL(fun, port, pin) \
249
((((((port) * 32U) + (pin)) & NRF_PIN_MSK) << NRF_PIN_POS) | \
250
((NRF_FUN_ ## fun & NRF_FUN_MSK) << NRF_FUN_POS))
248
#define NRF_PSEL(fun, port, pin) \
…
251
260
#define NRF_PSEL_DISCONNECTED(fun) \
261
(NRF_PIN_DISCONNECTED | \
262
((NRF_FUN_ ## fun & NRF_FUN_MSK) << NRF_FUN_POS))
260
#define NRF_PSEL_DISCONNECTED(fun) \
…
263
264
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_NRF_PINCTRL_H_ */
zephyr
dt-bindings
pinctrl
nrf-pinctrl.h
Generated on Sat May 17 2025 06:05:56 for Zephyr API Documentation by
1.12.0