The MCUXpresso SDK provides a driver for the Input multiplexing (INPUTMUX).
It configures the inputs to the pin interrupt block, DMA trigger, and frequency measure function. Once configured, the clock is not needed for the inputmux.
Input Multiplexing Driver operation
INPUTMUX_AttachSignal function configures the specified input
Typical use case
Refer to the driver examples codes located at <SDK_ROOT>/boards/<BOARD>/driver_examples/inputmux
void INPUTMUX_Init |
( |
INPUTMUX_Type * |
base | ) |
|
This function enables the INPUTMUX clock.
- Parameters
-
base | Base address of the INPUTMUX peripheral. |
- Return values
-
void INPUTMUX_AttachSignal |
( |
INPUTMUX_Type * |
base, |
|
|
uint32_t |
index, |
|
|
inputmux_connection_t |
connection |
|
) |
| |
This function attaches multiplexed signals from INPUTMUX to target signals. For example, to attach GPIO PORT0 Pin 5 to PINT peripheral, do the following:
In this example, INTMUX has 8 registers for PINT, PINT_SEL0~PINT_SEL7. With parameter index
specified as 2, this function configures register PINT_SEL2.
- Parameters
-
base | Base address of the INPUTMUX peripheral. |
index | The serial number of destination register in the group of INPUTMUX registers with same name. |
connection | Applies signal from source signals collection to target signal. |
- Return values
-
void INPUTMUX_Deinit |
( |
INPUTMUX_Type * |
base | ) |
|
This function disables the INPUTMUX clock.
- Parameters
-
base | Base address of the INPUTMUX peripheral. |
- Return values
-