MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / LEUART_Tx

Function LEUART_Tx

bsp/efm32/Libraries/emlib/src/em_leuart.c:593–603  ·  view source on GitHub ↗

/ * @brief * Transmit one frame. * * @details * Depending on frame length configuration, 8 (least significant) bits from * @p data are transmitted. If frame length is 9, 8 bits are transmitted from * @p data and one bit as specified by CTRL register, BIT8DV field. Please * refer to LEUART_TxExt() for transmitting 9 bit frame with full control of * all 9 bits. * * Notice tha

Source from the content-addressed store, hash-verified

591 * Data to transmit. See details above for further info.
592 ******************************************************************************/
593void LEUART_Tx(LEUART_TypeDef *leuart, uint8_t data)
594{
595 /* Check that transmit buffer is empty */
596 while (!(leuart->STATUS & LEUART_STATUS_TXBL))
597 ;
598
599 /* LF register about to be modified require sync. busy check */
600 LEUART_Sync(leuart, LEUART_SYNCBUSY_TXDATA);
601
602 leuart->TXDATA = (uint32_t)data;
603}
604
605
606/***************************************************************************//**

Callers

nothing calls this directly

Calls 1

LEUART_SyncFunction · 0.85

Tested by

no test coverage detected