/* param base USART peripheral base address. param enable true to enable, false to disable.  */
void USART_Enable9bitMode(USART_Type *base, bool enable)
/* param base USART peripheral base address. param enable true to enable, false to disable.  */
void USART_Enable9bitMode(USART_Type *base, bool enable)
{
    assert(base != NULL);
    uint32_t temp = 0U;
    if (enable)
    {
        temp = base->CFG & ~((uint32_t)USART_CFG_DATALEN_MASK | (uint32_t)USART_CFG_PARITYSEL_MASK);
        temp |= (uint32_t)USART_CFG_DATALEN(0x2U);
        base->CFG = temp;
    }
    else
    {
        base->CFG &= ~((uint32_t)USART_CFG_DATALEN_MASK);
        base->CFG |= (uint32_t)USART_CFG_DATALEN(0x1U);
    }
}