FreeRTOS/Demo/Safer_Interrupts_M33F_NXP_LPC55S69_MCUXpresso/NXP_Code/drivers/fsl_inputmux.c
/*!
 * brief Attaches a signal
 *
 * This function gates the INPUTPMUX clock.
 *
 * param base Base address of the INPUTMUX peripheral.
 * param index Destination peripheral to attach the signal to.
 * param connection Selects connection.
 *
 * retval None.
 */
brief Attaches a signal

This function gates the INPUTPMUX clock.

param base Base address of the INPUTMUX peripheral.
param index Destination peripheral to attach the signal to.
param connection Selects connection.

retval None.
brief Attaches a signal This function gates the INPUTPMUX clock . param base Base address of the INPUTMUX peripheral . param index Destination peripheral to attach the signal to . param connection Selects connection . retval None .
void INPUTMUX_AttachSignal(INPUTMUX_Type *base, uint32_t index, inputmux_connection_t connection)
{
    uint32_t pmux_id;
    uint32_t output_id;
    pmux_id = ((uint32_t)(connection)) >> PMUX_SHIFT;
    output_id = ((uint32_t)(connection)) & ((1UL << PMUX_SHIFT) - 1U);
    *(volatile uint32_t *)(((uint32_t)base) + pmux_id + (index * 4U)) = output_id;
}
void INPUTMUX_AttachSignal ( INPUTMUX_Type * base , uint32_t index , inputmux_connection_t connection ) { uint32_t pmux_id ; uint32_t output_id ; pmux_id = ( ( uint32_t ) ( connection ) ) >> PMUX_SHIFT ; output_id = ( ( uint32_t ) ( connection ) ) & ( ( 1UL << PMUX_SHIFT ) - 1U ) ; * ( volatile uint32_t * ) ( ( ( uint32_t ) base ) + pmux_id + ( index * 4U ) ) = output_id ; }
brief Attaches a signal
brief Attaches a signal
/* extract pmux to be used */ /*  extract function number */ /* programm signal */