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

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

Files

file  ambiq-apollo5-pinctrl.h
 Devicetree pin control helpers for Ambiq Apollo5.

Detailed Description

Macros for pin control configuration of Ambiq Apollo5.

Use APOLLO5_PINMUX() to encode a pin number and alternative function for the pinmux devicetree property.

#include <zephyr/dt-bindings/pinctrl/ambiq-apollo5-pinctrl.h>
&pinctrl {
uart0_default: uart0_default {
group1 {
pinmux = <APOLLO5_PINMUX(60, 4)>;
};
group2 {
pinmux = <APOLLO5_PINMUX(47, 4)>;
input-enable;
};
};
};