Skip to content

pinctrl specific pin acces #50762

Answered by cameled
milansedlak asked this question in Q&A
Sep 28, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

The NRF_PSEL macro definition as below. After DTS has been processed, there no pin number left.

FILE: include/zephyr/dt-bindings/pinctrl/nrf-pinctrl.h

#define NRF_PSEL(fun, port, pin)						       \
	((((((port) * 32U) + (pin)) & NRF_PIN_MSK) << NRF_PIN_POS) |		       \
	 ((NRF_FUN_ ## fun & NRF_FUN_MSK) << NRF_FUN_POS))

More refer: https://docs.zephyrproject.org/3.1.0/build/cmake/index.html#build-and-configuration-phases

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@milansedlak
Comment options

Answer selected by milansedlak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants