The MCUXpresso SDK provides a driver for the Input multiplexing (INPUTMUX).
It configures the inputs to the pin interrupt block, DMA trigger and the 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
Enumerator |
---|
kINPUTMUX_MainOscToFreqmeas |
Frequency measure.
|
kINPUTMUX_GpioPort1Pin4ToFreqmeas |
Pin Interrupt.
|
kINPUTMUX_GpioPort1Pin31ToPintsel |
DMA ITRIG.
|
kINPUTMUX_Otrig3ToDma |
DMA OTRIG.
|
void INPUTMUX_Init |
( |
INPUTMUX_Type * |
base | ) |
|
This function enables the INPUTMUX clock.
- Parameters
-
base | Base address of the INPUTMUX peripheral. |
- Return values
-
This function gates the INPUTPMUX clock.
- Parameters
-
base | Base address of the INPUTMUX peripheral. |
index | Destination peripheral to attach the signal to. |
connection | Selects connection. |
- Return values
-
void INPUTMUX_Deinit |
( |
INPUTMUX_Type * |
base | ) |
|
This function disables the INPUTMUX clock.
- Parameters
-
base | Base address of the INPUTMUX peripheral. |
- Return values
-