Lines Matching full:reg
44 #define NRF_PSEL_UART(reg, line) ((NRF_UART_Type *)reg)->PSEL##line argument
47 #define NRF_PSEL_UART(reg, line) ((NRF_UARTE_Type *)reg)->PSEL.line argument
51 #define NRF_PSEL_SPIM(reg, line) ((NRF_SPI_Type *)reg)->PSEL##line argument
54 #define NRF_PSEL_SPIM(reg, line) ((NRF_SPIM_Type *)reg)->PSEL.line argument
60 #define NRF_PSEL_SPIS(reg, line) ((NRF_SPIS_Type *)reg)->PSEL##line argument
62 #define NRF_PSEL_SPIS(reg, line) ((NRF_SPIS_Type *)reg)->PSEL.line argument
68 #define NRF_PSEL_TWIM(reg, line) ((NRF_TWI_Type *)reg)->PSEL##line argument
70 #define NRF_PSEL_TWIM(reg, line) ((NRF_TWI_Type *)reg)->PSEL.line argument
74 #define NRF_PSEL_TWIM(reg, line) ((NRF_TWIM_Type *)reg)->PSEL.line argument
78 #define NRF_PSEL_I2S(reg, line) ((NRF_I2S_Type *)reg)->PSEL.line argument
82 #define NRF_PSEL_PDM(reg, line) ((NRF_PDM_Type *)reg)->PSEL.line argument
86 #define NRF_PSEL_PWM(reg, line) ((NRF_PWM_Type *)reg)->PSEL.line argument
90 #define NRF_PSEL_QDEC(reg, line) ((NRF_QDEC_Type *)reg)->PSEL.line argument
94 #define NRF_PSEL_QSPI(reg, line) ((NRF_QSPI_Type *)reg)->PSEL.line argument
99 #define NRF_PSEL_TWIS(reg, line) ((NRF_TWIS_Type *)reg)->PSEL.line argument
103 uintptr_t reg) in pinctrl_configure_pins() argument
130 NRF_PSEL_UART(reg, TXD) = psel; in pinctrl_configure_pins()
136 NRF_PSEL_UART(reg, RXD) = psel; in pinctrl_configure_pins()
141 NRF_PSEL_UART(reg, RTS) = psel; in pinctrl_configure_pins()
147 NRF_PSEL_UART(reg, CTS) = psel; in pinctrl_configure_pins()
154 NRF_PSEL_SPIM(reg, SCK) = psel; in pinctrl_configure_pins()
160 NRF_PSEL_SPIM(reg, MOSI) = psel; in pinctrl_configure_pins()
166 NRF_PSEL_SPIM(reg, MISO) = psel; in pinctrl_configure_pins()
173 NRF_PSEL_SPIS(reg, SCK) = psel; in pinctrl_configure_pins()
178 NRF_PSEL_SPIS(reg, MOSI) = psel; in pinctrl_configure_pins()
183 NRF_PSEL_SPIS(reg, MISO) = psel; in pinctrl_configure_pins()
188 NRF_PSEL_SPIS(reg, CSN) = psel; in pinctrl_configure_pins()
195 NRF_PSEL_TWIM(reg, SCL) = psel; in pinctrl_configure_pins()
209 NRF_PSEL_TWIM(reg, SDA) = psel; in pinctrl_configure_pins()
219 NRF_PSEL_I2S(reg, SCK) = psel; in pinctrl_configure_pins()
225 NRF_PSEL_I2S(reg, SCK) = psel; in pinctrl_configure_pins()
230 NRF_PSEL_I2S(reg, LRCK) = psel; in pinctrl_configure_pins()
236 NRF_PSEL_I2S(reg, LRCK) = psel; in pinctrl_configure_pins()
241 NRF_PSEL_I2S(reg, SDIN) = psel; in pinctrl_configure_pins()
246 NRF_PSEL_I2S(reg, SDOUT) = psel; in pinctrl_configure_pins()
252 NRF_PSEL_I2S(reg, MCK) = psel; in pinctrl_configure_pins()
260 NRF_PSEL_PDM(reg, CLK) = psel; in pinctrl_configure_pins()
266 NRF_PSEL_PDM(reg, DIN) = psel; in pinctrl_configure_pins()
273 NRF_PSEL_PWM(reg, OUT[0]) = psel; in pinctrl_configure_pins()
279 NRF_PSEL_PWM(reg, OUT[1]) = psel; in pinctrl_configure_pins()
285 NRF_PSEL_PWM(reg, OUT[2]) = psel; in pinctrl_configure_pins()
291 NRF_PSEL_PWM(reg, OUT[3]) = psel; in pinctrl_configure_pins()
299 NRF_PSEL_QDEC(reg, A) = psel; in pinctrl_configure_pins()
304 NRF_PSEL_QDEC(reg, B) = psel; in pinctrl_configure_pins()
309 NRF_PSEL_QDEC(reg, LED) = psel; in pinctrl_configure_pins()
316 NRF_PSEL_QSPI(reg, SCK) = psel; in pinctrl_configure_pins()
321 NRF_PSEL_QSPI(reg, CSN) = psel; in pinctrl_configure_pins()
327 NRF_PSEL_QSPI(reg, IO0) = psel; in pinctrl_configure_pins()
332 NRF_PSEL_QSPI(reg, IO1) = psel; in pinctrl_configure_pins()
337 NRF_PSEL_QSPI(reg, IO2) = psel; in pinctrl_configure_pins()
342 NRF_PSEL_QSPI(reg, IO3) = psel; in pinctrl_configure_pins()
361 NRF_PSEL_TWIS(reg, SCL) = psel; in pinctrl_configure_pins()
369 NRF_PSEL_TWIS(reg, SDA) = psel; in pinctrl_configure_pins()