Zephyr API Documentation 4.2.0-rc3
A Scalable Open Source RTOS
 4.2.0-rc3
ambiq-apollo5-pinctrl.h File Reference

Go to the source code of this file.

Macros

#define APOLLO5_ALT_FUNC_POS   0
#define APOLLO5_ALT_FUNC_MASK   0xf
#define APOLLO5_PIN_NUM_POS   4
#define APOLLO5_PIN_NUM_MASK   0xff
#define APOLLO5_PINMUX(pin_num, alt_func)

Macro Definition Documentation

◆ APOLLO5_ALT_FUNC_MASK

#define APOLLO5_ALT_FUNC_MASK   0xf

◆ APOLLO5_ALT_FUNC_POS

#define APOLLO5_ALT_FUNC_POS   0

◆ APOLLO5_PIN_NUM_MASK

#define APOLLO5_PIN_NUM_MASK   0xff

◆ APOLLO5_PIN_NUM_POS

#define APOLLO5_PIN_NUM_POS   4

◆ APOLLO5_PINMUX

#define APOLLO5_PINMUX ( pin_num,
alt_func )
Value:
(pin_num << APOLLO5_PIN_NUM_POS | \
alt_func << APOLLO5_ALT_FUNC_POS)
#define APOLLO5_PIN_NUM_POS
Definition ambiq-apollo5-pinctrl.h:13
#define APOLLO5_ALT_FUNC_POS
Definition ambiq-apollo5-pinctrl.h:10