 |
Zephyr API 3.6.99
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
6#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_GECKO_PINCTRL_S1_H_
7#define ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_GECKO_PINCTRL_S1_H_
20#define GECKO_PORT_K 10
22#define GECKO_PIN(n) (n)
23#define GECKO_LOCATION(n) (n)
43#define GECKO_FUN_POS 24U
45#define GECKO_FUN_MSK 0xFFU
48#define GECKO_PIN_POS 0U
50#define GECKO_PIN_MSK 0xFFU
53#define GECKO_PORT_POS 8U
55#define GECKO_PORT_MSK 0xFFU
58#define GECKO_LOC_POS 0U
60#define GECKO_LOC_MSK 0xFFU
70#define GECKO_FUN_UART_TX 0U
72#define GECKO_FUN_UART_RX 1U
74#define GECKO_FUN_UART_RTS 2U
76#define GECKO_FUN_UART_CTS 3U
78#define GECKO_FUN_UART_RX_LOC 4U
80#define GECKO_FUN_UART_TX_LOC 5U
82#define GECKO_FUN_UART_RTS_LOC 6U
84#define GECKO_FUN_UART_CTS_LOC 7U
86#define GECKO_FUN_SPIM_MISO 8U
87#define GECKO_FUN_SPIM_MOSI 9U
88#define GECKO_FUN_SPIM_CS 10U
89#define GECKO_FUN_SPIM_SCK 11U
91#define GECKO_FUN_LEUART_RX_LOC 12U
92#define GECKO_FUN_LEUART_TX_LOC 13U
94#define GECKO_FUN_SPIS_MISO 14U
95#define GECKO_FUN_SPIS_MOSI 15U
96#define GECKO_FUN_SPIS_CS 16U
97#define GECKO_FUN_SPIS_SCK 17U
99#define GECKO_FUN_SPI_MISO_LOC 18U
100#define GECKO_FUN_SPI_MOSI_LOC 19U
101#define GECKO_FUN_SPI_CS_LOC 20U
102#define GECKO_FUN_SPI_SCK_LOC 21U
104#define GECKO_FUN_I2C_SDA 22U
105#define GECKO_FUN_I2C_SCL 23U
106#define GECKO_FUN_I2C_SDA_LOC 24U
107#define GECKO_FUN_I2C_SCL_LOC 25U
119#define GECKO_PSEL(fun, port, pin) \
120 (((GECKO_PORT_##port & GECKO_PORT_MSK) << GECKO_PORT_POS) | \
121 ((GECKO_PIN(##pin##) & GECKO_PIN_MSK) << GECKO_PIN_POS) | \
122 ((GECKO_FUN_##fun & GECKO_FUN_MSK) << GECKO_FUN_POS))
130#define GECKO_LOC(fun, loc) \
131 (((GECKO_LOCATION(##loc##) & GECKO_LOC_MSK) << GECKO_LOC_POS) | \
132 ((GECKO_FUN_##fun##_LOC & GECKO_FUN_MSK) << GECKO_FUN_POS))