Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Ambiq Apollo4 pin control helpers

Macros for pin control configuration of Ambiq Apollo4. More...

Files

file  ambiq-apollo4-pinctrl.h
 Devicetree pin control helpers for Ambiq Apollo4.

Detailed Description

Macros for pin control configuration of Ambiq Apollo4.

The macros follow the following naming convention: <FUNCTION>_P<PIN>.

For example, UART0TX_P60 corresponds to selecting the UART0TX function on pin 60.

#include <zephyr/dt-bindings/pinctrl/ambiq-apollo4-pinctrl.h>
&pinctrl {
uart0_default: uart0_default {
group1 {
pinmux = <UART0TX_P60>;
};
group2 {
pinmux = <UART0RX_P47>;
input-enable;
};
};
};