libClearCore/src/SerialBase.cpp
void SerialBase::PortEnable(bool initializing) {
    // Enable port and wait for the sync.
    m_serPort->USART.CTRLA.bit.ENABLE = 1;
    SercomUsart *usart = &m_serPort->USART;
    SYNCBUSY_WAIT(usart, SERCOM_USART_SYNCBUSY_ENABLE);

    if (!initializing) {
        PMUX_ENABLE(m_txMosiInfo->gpioPort, m_txMosiInfo->gpioPin);
    }
}
/**
    Enable/Disable the port.

    ENABLE is the same for all modes of the port SPI/USART/I2C
**/
Enable/Disable the port.
ENABLE is the same for all modes of the port SPI/USART/I2C
Enable / Disable the port . ENABLE is the same for all modes of the port SPI / USART / I2C
void SerialBase::PortEnable(bool initializing) {
    m_serPort->USART.CTRLA.bit.ENABLE = 1;
    SercomUsart *usart = &m_serPort->USART;
    SYNCBUSY_WAIT(usart, SERCOM_USART_SYNCBUSY_ENABLE);
    if (!initializing) {
        PMUX_ENABLE(m_txMosiInfo->gpioPort, m_txMosiInfo->gpioPin);
    }
}
void SerialBase :: PortEnable ( bool initializing ) { m_serPort -> USART . CTRLA . bit . ENABLE = 1 ; SercomUsart * usart = & m_serPort -> USART ; SYNCBUSY_WAIT ( usart , SERCOM_USART_SYNCBUSY_ENABLE ) ; if ( ! initializing ) { PMUX_ENABLE ( m_txMosiInfo -> gpioPort , m_txMosiInfo -> gpioPin ) ; } }
Enable/Disable the port.
Enable / Disable the port .
// Enable port and wait for the sync.