/* Enable UART system clock. 
This function enables or disables the UART system clock. */
void am_hal_clkgen_uarten_set(uint32_t ui32Module, uint32_t ui32UartEn)
/* Enable UART system clock. 
This function enables or disables the UART system clock. */
void am_hal_clkgen_uarten_set(uint32_t ui32Module, uint32_t ui32UartEn)
{
    uint32_t ui32Mask;
    if ( (ui32Module >= AM_REG_UART_NUM_MODULES)        ||
         (ui32UartEn > AM_HAL_CLKGEN_UARTEN_EN_POWER_SAV) )
    {
        return;
    }
    ui32UartEn <<= (ui32Module * AM_HAL_CLKGEN_UARTEN_UARTENn_S(ui32Module));
    ui32Mask = ~(AM_HAL_CLKGEN_UARTEN_UARTENn_M(ui32Module));
    AM_CRITICAL_BEGIN_ASM
    AM_REG(CLKGEN, UARTEN) &= ui32Mask;
    AM_REG(CLKGEN, UARTEN) |= ui32UartEn;
    AM_CRITICAL_END_ASM
}