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

Function LEUART_TxExt

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

/ * @brief * Transmit one 8-9 bit frame with extended control. * * @details * Notice that possible parity/stop bits in asynchronous mode are not * considered part of specified frame bit length. * * @note * This function will stall if buffer is full, until buffer becomes available. * * @param[in] leuart * Pointer to LEUART peripheral register block. * * @param[in] data * D

Source from the content-addressed store, hash-verified

623 * the EFM32 reference manual (set to 0 if not used).
624 ******************************************************************************/
625void LEUART_TxExt(LEUART_TypeDef *leuart, uint16_t data)
626{
627 /* Check that transmit buffer is empty */
628 while (!(leuart->STATUS & LEUART_STATUS_TXBL))
629 ;
630
631 /* LF register about to be modified require sync. busy check */
632 LEUART_Sync(leuart, LEUART_SYNCBUSY_TXDATAX);
633
634 leuart->TXDATAX = (uint32_t)data;
635}
636
637
638/** @} (end addtogroup LEUART) */

Callers

nothing calls this directly

Calls 1

LEUART_SyncFunction · 0.85

Tested by

no test coverage detected