![]() |
MCUXpresso SDK API Reference Manual
Rev. 0
NXP Semiconductors
|
Pinmux driver supports peripheral IO multiplex configration.
Files | |
file | fsl_pinmux.h |
Macros | |
#define | PINMUX_FUNC0 0x0U |
PINMUX function and mode selection definitions. More... | |
#define | PINMUX_FUNC1 0x1U |
Selects pin function 1. | |
#define | PINMUX_FUNC2 0x2U |
Selects pin function 2. | |
#define | PINMUX_FUNC3 0x3U |
Selects pin function 3. | |
#define | PINMUX_FUNC4 0x4U |
Selects pin function 4. | |
#define | PINMUX_FUNC5 0x5U |
Selects pin function 5. | |
#define | PINMUX_FUNC6 0x6U |
Selects pin function 6. | |
#define | PINMUX_FUNC7 0x7U |
Selects pin function 7. | |
#define | PINMUX_FUNC_MASK 0x7U |
Pinmux function mask in modefunc. | |
#define | PINMUX_MODE_DEFAULT (0x1U << 3) |
Pulled up by default 50 kΩ | |
#define | PINMUX_MODE_PULLUP ((0x1U << 3) | (0x1U << 14) | (0x1U << 15)) |
Selects pull-up. | |
#define | PINMUX_MODE_PULLDOWN ((0x1U << 3) | (0x1U << 13) | (0x1U << 15)) |
Selects pull-down. | |
#define | PINMUX_MODE_NOPULL ((0x1U << 3) | (0x1U << 15)) |
Selects no pull. | |
#define | PINMUX_MODE_TRISTATE (0x1U << 15) |
Selects tristate. | |
Functions | |
void | PINMUX_PinMuxSet (uint32_t pin, uint32_t modefunc) |
Sets I/O Pad Control pin mux. More... | |
Driver version | |
#define | FSL_PINMUX_DRIVER_VERSION (MAKE_VERSION(2, 0, 0)) |
PINMUX driver version 2.0.0. More... | |
#define FSL_PINMUX_DRIVER_VERSION (MAKE_VERSION(2, 0, 0)) |
#define PINMUX_FUNC0 0x0U |
void PINMUX_PinMuxSet | ( | uint32_t | pin, |
uint32_t | modefunc | ||
) |
pin | : GPIO pin to mux |
modefunc | : OR'ed values of mode and function, type PINMUX_* |