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

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

Files

file  ambiq-apollo2-pinctrl.h
 Devicetree pin control helpers for Ambiq Apollo2.

Detailed Description

Macros for pin control configuration of Ambiq Apollo2.

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

For example, UART0TX_P22 corresponds to selecting the UART0TX function on pin 22.

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