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
q
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
►
b91-pinctrl.h
►
cc13xx_cc26xx-pinctrl.h
►
cc23x0-pinctrl.h
►
ch32v003-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
►
mctp
►
mem_mgmt
►
mgmt
►
misc
►
modbus
►
modem
►
multi_heap
►
net
►
platform
►
pm
►
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
gecko-pinctrl-s1.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2023 Silicon Labs
3
* SPDX-License-Identifier: Apache-2.0
4
*/
5
6
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_GECKO_PINCTRL_S1_H_
7
#define ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_GECKO_PINCTRL_S1_H_
8
9
/*
10
* The whole GECKO_pin configuration information is encoded in a 32-bit bitfield
11
* organized as follows:
12
*
13
* - 31..24: Pin function.
14
* - 23..16: Reserved.
15
* - 15..8: Port for UART_RX/UART_TX functions.
16
* - 7..0: Pin number for UART_RX/UART_TX functions.
17
* - 15..8: Reserved for UART_LOC function.
18
* - 7..0: Loc for UART_LOC function.
19
*/
20
27
#define GECKO_FUN_POS 24U
29
#define GECKO_FUN_MSK 0xFFU
30
32
#define GECKO_PIN_POS 0U
34
#define GECKO_PIN_MSK 0xFFU
35
37
#define GECKO_PORT_POS 8U
39
#define GECKO_PORT_MSK 0xFFU
40
42
#define GECKO_LOC_POS 0U
44
#define GECKO_LOC_MSK 0xFFU
45
54
#define GECKO_FUN_UART_TX 0U
56
#define GECKO_FUN_UART_RX 1U
58
#define GECKO_FUN_UART_RTS 2U
60
#define GECKO_FUN_UART_CTS 3U
62
#define GECKO_FUN_UART_RX_LOC 4U
64
#define GECKO_FUN_UART_TX_LOC 5U
66
#define GECKO_FUN_UART_RTS_LOC 6U
68
#define GECKO_FUN_UART_CTS_LOC 7U
69
70
#define GECKO_FUN_SPIM_MISO 8U
71
#define GECKO_FUN_SPIM_MOSI 9U
72
#define GECKO_FUN_SPIM_CS 10U
73
#define GECKO_FUN_SPIM_SCK 11U
74
75
#define GECKO_FUN_LEUART_RX_LOC 12U
76
#define GECKO_FUN_LEUART_TX_LOC 13U
77
78
#define GECKO_FUN_SPIS_MISO 14U
79
#define GECKO_FUN_SPIS_MOSI 15U
80
#define GECKO_FUN_SPIS_CS 16U
81
#define GECKO_FUN_SPIS_SCK 17U
82
83
#define GECKO_FUN_SPI_MISO_LOC 18U
84
#define GECKO_FUN_SPI_MOSI_LOC 19U
85
#define GECKO_FUN_SPI_CS_LOC 20U
86
#define GECKO_FUN_SPI_SCK_LOC 21U
87
88
#define GECKO_FUN_I2C_SDA 22U
89
#define GECKO_FUN_I2C_SCL 23U
90
#define GECKO_FUN_I2C_SDA_LOC 24U
91
#define GECKO_FUN_I2C_SCL_LOC 25U
92
93
103
#define GECKO_PSEL(fun, port, pin) \
104
(((GECKO_PORT_##port & GECKO_PORT_MSK) << GECKO_PORT_POS) | \
105
((GECKO_PIN(##pin##) & GECKO_PIN_MSK) << GECKO_PIN_POS) | \
106
((GECKO_FUN_##fun & GECKO_FUN_MSK) << GECKO_FUN_POS))
103
#define GECKO_PSEL(fun, port, pin) \
…
107
114
#define GECKO_LOC(fun, loc) \
115
(((GECKO_LOCATION(##loc##) & GECKO_LOC_MSK) << GECKO_LOC_POS) | \
116
((GECKO_FUN_##fun##_LOC & GECKO_FUN_MSK) << GECKO_FUN_POS))
114
#define GECKO_LOC(fun, loc) \
…
117
118
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_GECKO_PINCTRL_S1_H_ */
zephyr
dt-bindings
pinctrl
gecko-pinctrl-s1.h
Generated on Fri Mar 14 2025 12:05:19 for Zephyr API Documentation by
1.12.0