20#ifndef STM32H7xx_LL_USART_H
21#define STM32H7xx_LL_USART_H
34#if defined(USART1) || defined(USART2) || defined(USART3) || defined(USART6) \
35 || defined(UART4) || defined(UART5) || defined(UART7) || defined(UART8) || defined(UART9) || defined(USART10)
49static const uint32_t USART_PRESCALER_TAB[] =
77#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__)
88#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__)
99 uint32_t PrescalerValue;
128 uint32_t TransferDirection;
134 uint32_t HardwareFlowControl;
140 uint32_t OverSampling;
146} LL_USART_InitTypeDef;
153 uint32_t ClockOutput;
160 uint32_t ClockPolarity;
174 uint32_t LastBitClockPulse;
182} LL_USART_ClockInitTypeDef;
200#define LL_USART_ICR_PECF USART_ICR_PECF
201#define LL_USART_ICR_FECF USART_ICR_FECF
202#define LL_USART_ICR_NECF USART_ICR_NECF
203#define LL_USART_ICR_ORECF USART_ICR_ORECF
204#define LL_USART_ICR_IDLECF USART_ICR_IDLECF
205#define LL_USART_ICR_TXFECF USART_ICR_TXFECF
206#define LL_USART_ICR_TCCF USART_ICR_TCCF
207#define LL_USART_ICR_TCBGTCF USART_ICR_TCBGTCF
208#define LL_USART_ICR_LBDCF USART_ICR_LBDCF
209#define LL_USART_ICR_CTSCF USART_ICR_CTSCF
210#define LL_USART_ICR_RTOCF USART_ICR_RTOCF
211#define LL_USART_ICR_EOBCF USART_ICR_EOBCF
212#define LL_USART_ICR_UDRCF USART_ICR_UDRCF
213#define LL_USART_ICR_CMCF USART_ICR_CMCF
214#define LL_USART_ICR_WUCF USART_ICR_WUCF
224#define LL_USART_ISR_PE USART_ISR_PE
225#define LL_USART_ISR_FE USART_ISR_FE
226#define LL_USART_ISR_NE USART_ISR_NE
227#define LL_USART_ISR_ORE USART_ISR_ORE
228#define LL_USART_ISR_IDLE USART_ISR_IDLE
229#define LL_USART_ISR_RXNE_RXFNE USART_ISR_RXNE_RXFNE
230#define LL_USART_ISR_TC USART_ISR_TC
231#define LL_USART_ISR_TXE_TXFNF USART_ISR_TXE_TXFNF
232#define LL_USART_ISR_LBDF USART_ISR_LBDF
233#define LL_USART_ISR_CTSIF USART_ISR_CTSIF
234#define LL_USART_ISR_CTS USART_ISR_CTS
235#define LL_USART_ISR_RTOF USART_ISR_RTOF
236#define LL_USART_ISR_EOBF USART_ISR_EOBF
237#define LL_USART_ISR_UDR USART_ISR_UDR
238#define LL_USART_ISR_ABRE USART_ISR_ABRE
239#define LL_USART_ISR_ABRF USART_ISR_ABRF
240#define LL_USART_ISR_BUSY USART_ISR_BUSY
241#define LL_USART_ISR_CMF USART_ISR_CMF
242#define LL_USART_ISR_SBKF USART_ISR_SBKF
243#define LL_USART_ISR_RWU USART_ISR_RWU
244#define LL_USART_ISR_WUF USART_ISR_WUF
245#define LL_USART_ISR_TEACK USART_ISR_TEACK
246#define LL_USART_ISR_REACK USART_ISR_REACK
247#define LL_USART_ISR_TXFE USART_ISR_TXFE
248#define LL_USART_ISR_RXFF USART_ISR_RXFF
249#define LL_USART_ISR_TCBGT USART_ISR_TCBGT
250#define LL_USART_ISR_RXFT USART_ISR_RXFT
251#define LL_USART_ISR_TXFT USART_ISR_TXFT
261#define LL_USART_CR1_IDLEIE USART_CR1_IDLEIE
262#define LL_USART_CR1_RXNEIE_RXFNEIE USART_CR1_RXNEIE_RXFNEIE
263#define LL_USART_CR1_TCIE USART_CR1_TCIE
264#define LL_USART_CR1_TXEIE_TXFNFIE USART_CR1_TXEIE_TXFNFIE
265#define LL_USART_CR1_PEIE USART_CR1_PEIE
266#define LL_USART_CR1_CMIE USART_CR1_CMIE
267#define LL_USART_CR1_RTOIE USART_CR1_RTOIE
268#define LL_USART_CR1_EOBIE USART_CR1_EOBIE
269#define LL_USART_CR1_TXFEIE USART_CR1_TXFEIE
270#define LL_USART_CR1_RXFFIE USART_CR1_RXFFIE
271#define LL_USART_CR2_LBDIE USART_CR2_LBDIE
272#define LL_USART_CR3_EIE USART_CR3_EIE
273#define LL_USART_CR3_CTSIE USART_CR3_CTSIE
274#define LL_USART_CR3_WUFIE USART_CR3_WUFIE
275#define LL_USART_CR3_TXFTIE USART_CR3_TXFTIE
276#define LL_USART_CR3_TCBGTIE USART_CR3_TCBGTIE
277#define LL_USART_CR3_RXFTIE USART_CR3_RXFTIE
286#define LL_USART_FIFOTHRESHOLD_1_8 0x00000000U
287#define LL_USART_FIFOTHRESHOLD_1_4 0x00000001U
288#define LL_USART_FIFOTHRESHOLD_1_2 0x00000002U
289#define LL_USART_FIFOTHRESHOLD_3_4 0x00000003U
290#define LL_USART_FIFOTHRESHOLD_7_8 0x00000004U
291#define LL_USART_FIFOTHRESHOLD_8_8 0x00000005U
300#define LL_USART_DIRECTION_NONE 0x00000000U
301#define LL_USART_DIRECTION_RX USART_CR1_RE
302#define LL_USART_DIRECTION_TX USART_CR1_TE
303#define LL_USART_DIRECTION_TX_RX (USART_CR1_TE |USART_CR1_RE)
312#define LL_USART_PARITY_NONE 0x00000000U
313#define LL_USART_PARITY_EVEN USART_CR1_PCE
314#define LL_USART_PARITY_ODD (USART_CR1_PCE | USART_CR1_PS)
323#define LL_USART_WAKEUP_IDLELINE 0x00000000U
324#define LL_USART_WAKEUP_ADDRESSMARK USART_CR1_WAKE
333#define LL_USART_DATAWIDTH_7B USART_CR1_M1
334#define LL_USART_DATAWIDTH_8B 0x00000000U
335#define LL_USART_DATAWIDTH_9B USART_CR1_M0
344#define LL_USART_OVERSAMPLING_16 0x00000000U
345#define LL_USART_OVERSAMPLING_8 USART_CR1_OVER8
350#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__)
356#define LL_USART_CLOCK_DISABLE 0x00000000U
357#define LL_USART_CLOCK_ENABLE USART_CR2_CLKEN
367#define LL_USART_LASTCLKPULSE_NO_OUTPUT 0x00000000U
368#define LL_USART_LASTCLKPULSE_OUTPUT USART_CR2_LBCL
377#define LL_USART_PHASE_1EDGE 0x00000000U
378#define LL_USART_PHASE_2EDGE USART_CR2_CPHA
387#define LL_USART_POLARITY_LOW 0x00000000U
388#define LL_USART_POLARITY_HIGH USART_CR2_CPOL
397#define LL_USART_PRESCALER_DIV1 0x00000000U
398#define LL_USART_PRESCALER_DIV2 (USART_PRESC_PRESCALER_0)
399#define LL_USART_PRESCALER_DIV4 (USART_PRESC_PRESCALER_1)
400#define LL_USART_PRESCALER_DIV6 (USART_PRESC_PRESCALER_1 | USART_PRESC_PRESCALER_0)
401#define LL_USART_PRESCALER_DIV8 (USART_PRESC_PRESCALER_2)
402#define LL_USART_PRESCALER_DIV10 (USART_PRESC_PRESCALER_2 | USART_PRESC_PRESCALER_0)
403#define LL_USART_PRESCALER_DIV12 (USART_PRESC_PRESCALER_2 | USART_PRESC_PRESCALER_1)
404#define LL_USART_PRESCALER_DIV16 (USART_PRESC_PRESCALER_2 | USART_PRESC_PRESCALER_1 | USART_PRESC_PRESCALER_0)
405#define LL_USART_PRESCALER_DIV32 (USART_PRESC_PRESCALER_3)
406#define LL_USART_PRESCALER_DIV64 (USART_PRESC_PRESCALER_3 | USART_PRESC_PRESCALER_0)
407#define LL_USART_PRESCALER_DIV128 (USART_PRESC_PRESCALER_3 | USART_PRESC_PRESCALER_1)
408#define LL_USART_PRESCALER_DIV256 (USART_PRESC_PRESCALER_3 | USART_PRESC_PRESCALER_1 | USART_PRESC_PRESCALER_0)
417#define LL_USART_STOPBITS_0_5 USART_CR2_STOP_0
418#define LL_USART_STOPBITS_1 0x00000000U
419#define LL_USART_STOPBITS_1_5 (USART_CR2_STOP_0 | USART_CR2_STOP_1)
420#define LL_USART_STOPBITS_2 USART_CR2_STOP_1
429#define LL_USART_TXRX_STANDARD 0x00000000U
430#define LL_USART_TXRX_SWAPPED (USART_CR2_SWAP)
439#define LL_USART_RXPIN_LEVEL_STANDARD 0x00000000U
440#define LL_USART_RXPIN_LEVEL_INVERTED (USART_CR2_RXINV)
449#define LL_USART_TXPIN_LEVEL_STANDARD 0x00000000U
450#define LL_USART_TXPIN_LEVEL_INVERTED (USART_CR2_TXINV)
459#define LL_USART_BINARY_LOGIC_POSITIVE 0x00000000U
460#define LL_USART_BINARY_LOGIC_NEGATIVE USART_CR2_DATAINV
469#define LL_USART_BITORDER_LSBFIRST 0x00000000U
470#define LL_USART_BITORDER_MSBFIRST USART_CR2_MSBFIRST
479#define LL_USART_AUTOBAUD_DETECT_ON_STARTBIT 0x00000000U
480#define LL_USART_AUTOBAUD_DETECT_ON_FALLINGEDGE USART_CR2_ABRMODE_0
481#define LL_USART_AUTOBAUD_DETECT_ON_7F_FRAME USART_CR2_ABRMODE_1
482#define LL_USART_AUTOBAUD_DETECT_ON_55_FRAME (USART_CR2_ABRMODE_1 | USART_CR2_ABRMODE_0)
491#define LL_USART_ADDRESS_DETECT_4B 0x00000000U
492#define LL_USART_ADDRESS_DETECT_7B USART_CR2_ADDM7
501#define LL_USART_HWCONTROL_NONE 0x00000000U
502#define LL_USART_HWCONTROL_RTS USART_CR3_RTSE
503#define LL_USART_HWCONTROL_CTS USART_CR3_CTSE
504#define LL_USART_HWCONTROL_RTS_CTS (USART_CR3_RTSE | USART_CR3_CTSE)
513#define LL_USART_WAKEUP_ON_ADDRESS 0x00000000U
514#define LL_USART_WAKEUP_ON_STARTBIT USART_CR3_WUS_1
515#define LL_USART_WAKEUP_ON_RXNE (USART_CR3_WUS_0 | USART_CR3_WUS_1)
524#define LL_USART_IRDA_POWER_NORMAL 0x00000000U
525#define LL_USART_IRDA_POWER_LOW USART_CR3_IRLP
534#define LL_USART_LINBREAK_DETECT_10B 0x00000000U
535#define LL_USART_LINBREAK_DETECT_11B USART_CR2_LBDL
544#define LL_USART_DE_POLARITY_HIGH 0x00000000U
545#define LL_USART_DE_POLARITY_LOW USART_CR3_DEP
554#define LL_USART_DMA_REG_DATA_TRANSMIT 0x00000000U
555#define LL_USART_DMA_REG_DATA_RECEIVE 0x00000001U
582#define LL_USART_WriteReg(__INSTANCE__, __REG__, __VALUE__) WRITE_REG(__INSTANCE__->__REG__, (__VALUE__))
590#define LL_USART_ReadReg(__INSTANCE__, __REG__) READ_REG(__INSTANCE__->__REG__)
620#define __LL_USART_DIV_SAMPLING8(__PERIPHCLK__, __PRESCALER__, __BAUDRATE__) \
621 (((((__PERIPHCLK__)/(USART_PRESCALER_TAB[(__PRESCALER__)]))*2U)\
622 + ((__BAUDRATE__)/2U))/(__BAUDRATE__))
644#define __LL_USART_DIV_SAMPLING16(__PERIPHCLK__, __PRESCALER__, __BAUDRATE__) \
645 ((((__PERIPHCLK__)/(USART_PRESCALER_TAB[(__PRESCALER__)]))\
646 + ((__BAUDRATE__)/2U))/(__BAUDRATE__))
699__STATIC_INLINE uint32_t LL_USART_IsEnabled(
const USART_TypeDef *USARTx)
712__STATIC_INLINE
void LL_USART_EnableFIFO(
USART_TypeDef *USARTx)
725__STATIC_INLINE
void LL_USART_DisableFIFO(
USART_TypeDef *USARTx)
738__STATIC_INLINE uint32_t LL_USART_IsEnabledFIFO(
const USART_TypeDef *USARTx)
758__STATIC_INLINE
void LL_USART_SetTXFIFOThreshold(
USART_TypeDef *USARTx, uint32_t Threshold)
777__STATIC_INLINE uint32_t LL_USART_GetTXFIFOThreshold(
const USART_TypeDef *USARTx)
797__STATIC_INLINE
void LL_USART_SetRXFIFOThreshold(
USART_TypeDef *USARTx, uint32_t Threshold)
816__STATIC_INLINE uint32_t LL_USART_GetRXFIFOThreshold(
const USART_TypeDef *USARTx)
844__STATIC_INLINE
void LL_USART_ConfigFIFOsThreshold(
USART_TypeDef *USARTx, uint32_t TXThreshold, uint32_t RXThreshold)
847 (RXThreshold << USART_CR3_RXFTCFG_Pos));
860__STATIC_INLINE
void LL_USART_EnableInStopMode(
USART_TypeDef *USARTx)
874__STATIC_INLINE
void LL_USART_DisableInStopMode(
USART_TypeDef *USARTx)
887__STATIC_INLINE uint32_t LL_USART_IsEnabledInStopMode(
const USART_TypeDef *USARTx)
898__STATIC_INLINE
void LL_USART_EnableDirectionRx(
USART_TypeDef *USARTx)
909__STATIC_INLINE
void LL_USART_DisableDirectionRx(
USART_TypeDef *USARTx)
920__STATIC_INLINE
void LL_USART_EnableDirectionTx(
USART_TypeDef *USARTx)
931__STATIC_INLINE
void LL_USART_DisableDirectionTx(
USART_TypeDef *USARTx)
949__STATIC_INLINE
void LL_USART_SetTransferDirection(
USART_TypeDef *USARTx, uint32_t TransferDirection)
965__STATIC_INLINE uint32_t LL_USART_GetTransferDirection(
const USART_TypeDef *USARTx)
984__STATIC_INLINE
void LL_USART_SetParity(
USART_TypeDef *USARTx, uint32_t Parity)
999__STATIC_INLINE uint32_t LL_USART_GetParity(
const USART_TypeDef *USARTx)
1013__STATIC_INLINE
void LL_USART_SetWakeUpMethod(
USART_TypeDef *USARTx, uint32_t Method)
1026__STATIC_INLINE uint32_t LL_USART_GetWakeUpMethod(
const USART_TypeDef *USARTx)
1042__STATIC_INLINE
void LL_USART_SetDataWidth(
USART_TypeDef *USARTx, uint32_t DataWidth)
1057__STATIC_INLINE uint32_t LL_USART_GetDataWidth(
const USART_TypeDef *USARTx)
1068__STATIC_INLINE
void LL_USART_EnableMuteMode(
USART_TypeDef *USARTx)
1079__STATIC_INLINE
void LL_USART_DisableMuteMode(
USART_TypeDef *USARTx)
1090__STATIC_INLINE uint32_t LL_USART_IsEnabledMuteMode(
const USART_TypeDef *USARTx)
1104__STATIC_INLINE
void LL_USART_SetOverSampling(
USART_TypeDef *USARTx, uint32_t OverSampling)
1117__STATIC_INLINE uint32_t LL_USART_GetOverSampling(
const USART_TypeDef *USARTx)
1133__STATIC_INLINE
void LL_USART_SetLastClkPulseOutput(
USART_TypeDef *USARTx, uint32_t LastBitClockPulse)
1149__STATIC_INLINE uint32_t LL_USART_GetLastClkPulseOutput(
const USART_TypeDef *USARTx)
1165__STATIC_INLINE
void LL_USART_SetClockPhase(
USART_TypeDef *USARTx, uint32_t ClockPhase)
1180__STATIC_INLINE uint32_t LL_USART_GetClockPhase(
const USART_TypeDef *USARTx)
1196__STATIC_INLINE
void LL_USART_SetClockPolarity(
USART_TypeDef *USARTx, uint32_t ClockPolarity)
1211__STATIC_INLINE uint32_t LL_USART_GetClockPolarity(
const USART_TypeDef *USARTx)
1239__STATIC_INLINE
void LL_USART_ConfigClock(
USART_TypeDef *USARTx, uint32_t Phase, uint32_t Polarity, uint32_t LBCPOutput)
1265__STATIC_INLINE
void LL_USART_SetPrescaler(
USART_TypeDef *USARTx, uint32_t PrescalerValue)
1290__STATIC_INLINE uint32_t LL_USART_GetPrescaler(
const USART_TypeDef *USARTx)
1303__STATIC_INLINE
void LL_USART_EnableSCLKOutput(
USART_TypeDef *USARTx)
1316__STATIC_INLINE
void LL_USART_DisableSCLKOutput(
USART_TypeDef *USARTx)
1329__STATIC_INLINE uint32_t LL_USART_IsEnabledSCLKOutput(
const USART_TypeDef *USARTx)
1345__STATIC_INLINE
void LL_USART_SetStopBitsLength(
USART_TypeDef *USARTx, uint32_t StopBits)
1360__STATIC_INLINE uint32_t LL_USART_GetStopBitsLength(
const USART_TypeDef *USARTx)
1392__STATIC_INLINE
void LL_USART_ConfigCharacter(
USART_TypeDef *USARTx, uint32_t DataWidth, uint32_t Parity,
1408__STATIC_INLINE
void LL_USART_SetTXRXSwap(
USART_TypeDef *USARTx, uint32_t SwapConfig)
1421__STATIC_INLINE uint32_t LL_USART_GetTXRXSwap(
const USART_TypeDef *USARTx)
1435__STATIC_INLINE
void LL_USART_SetRXPinLevel(
USART_TypeDef *USARTx, uint32_t PinInvMethod)
1448__STATIC_INLINE uint32_t LL_USART_GetRXPinLevel(
const USART_TypeDef *USARTx)
1462__STATIC_INLINE
void LL_USART_SetTXPinLevel(
USART_TypeDef *USARTx, uint32_t PinInvMethod)
1475__STATIC_INLINE uint32_t LL_USART_GetTXPinLevel(
const USART_TypeDef *USARTx)
1491__STATIC_INLINE
void LL_USART_SetBinaryDataLogic(
USART_TypeDef *USARTx, uint32_t DataLogic)
1504__STATIC_INLINE uint32_t LL_USART_GetBinaryDataLogic(
const USART_TypeDef *USARTx)
1520__STATIC_INLINE
void LL_USART_SetTransferBitOrder(
USART_TypeDef *USARTx, uint32_t BitOrder)
1535__STATIC_INLINE uint32_t LL_USART_GetTransferBitOrder(
const USART_TypeDef *USARTx)
1548__STATIC_INLINE
void LL_USART_EnableAutoBaudRate(
USART_TypeDef *USARTx)
1561__STATIC_INLINE
void LL_USART_DisableAutoBaudRate(
USART_TypeDef *USARTx)
1574__STATIC_INLINE uint32_t LL_USART_IsEnabledAutoBaud(
const USART_TypeDef *USARTx)
1592__STATIC_INLINE
void LL_USART_SetAutoBaudRateMode(
USART_TypeDef *USARTx, uint32_t AutoBaudRateMode)
1609__STATIC_INLINE uint32_t LL_USART_GetAutoBaudRateMode(
USART_TypeDef *USARTx)
1620__STATIC_INLINE
void LL_USART_EnableRxTimeout(
USART_TypeDef *USARTx)
1631__STATIC_INLINE
void LL_USART_DisableRxTimeout(
USART_TypeDef *USARTx)
1642__STATIC_INLINE uint32_t LL_USART_IsEnabledRxTimeout(
const USART_TypeDef *USARTx)
1670__STATIC_INLINE
void LL_USART_ConfigNodeAddress(
USART_TypeDef *USARTx, uint32_t AddressLen, uint32_t NodeAddress)
1673 (uint32_t)(AddressLen | (NodeAddress << USART_CR2_ADD_Pos)));
1686__STATIC_INLINE uint32_t LL_USART_GetNodeAddress(
const USART_TypeDef *USARTx)
1688 return (uint32_t)(READ_BIT(USARTx->
CR2,
USART_CR2_ADD) >> USART_CR2_ADD_Pos);
1699__STATIC_INLINE uint32_t LL_USART_GetNodeAddressLen(
const USART_TypeDef *USARTx)
1712__STATIC_INLINE
void LL_USART_EnableRTSHWFlowCtrl(
USART_TypeDef *USARTx)
1725__STATIC_INLINE
void LL_USART_DisableRTSHWFlowCtrl(
USART_TypeDef *USARTx)
1738__STATIC_INLINE
void LL_USART_EnableCTSHWFlowCtrl(
USART_TypeDef *USARTx)
1751__STATIC_INLINE
void LL_USART_DisableCTSHWFlowCtrl(
USART_TypeDef *USARTx)
1770__STATIC_INLINE
void LL_USART_SetHWFlowCtrl(
USART_TypeDef *USARTx, uint32_t HardwareFlowControl)
1788__STATIC_INLINE uint32_t LL_USART_GetHWFlowCtrl(
const USART_TypeDef *USARTx)
1799__STATIC_INLINE
void LL_USART_EnableOneBitSamp(
USART_TypeDef *USARTx)
1810__STATIC_INLINE
void LL_USART_DisableOneBitSamp(
USART_TypeDef *USARTx)
1821__STATIC_INLINE uint32_t LL_USART_IsEnabledOneBitSamp(
const USART_TypeDef *USARTx)
1832__STATIC_INLINE
void LL_USART_EnableOverrunDetect(
USART_TypeDef *USARTx)
1843__STATIC_INLINE
void LL_USART_DisableOverrunDetect(
USART_TypeDef *USARTx)
1854__STATIC_INLINE uint32_t LL_USART_IsEnabledOverrunDetect(
const USART_TypeDef *USARTx)
1871__STATIC_INLINE
void LL_USART_SetWKUPType(
USART_TypeDef *USARTx, uint32_t Type)
1887__STATIC_INLINE uint32_t LL_USART_GetWKUPType(
const USART_TypeDef *USARTx)
1921__STATIC_INLINE
void LL_USART_SetBaudRate(
USART_TypeDef *USARTx, uint32_t PeriphClk, uint32_t PrescalerValue,
1922 uint32_t OverSampling,
1928 if (PrescalerValue > LL_USART_PRESCALER_DIV256)
1932 else if (BaudRate == 0U)
1936 else if (OverSampling == LL_USART_OVERSAMPLING_8)
1938 usartdiv = (uint16_t)(__LL_USART_DIV_SAMPLING8(PeriphClk, (uint8_t)PrescalerValue, BaudRate));
1939 brrtemp = usartdiv & 0xFFF0U;
1940 brrtemp |= (uint16_t)((usartdiv & (uint16_t)0x000FU) >> 1U);
1941 USARTx->
BRR = brrtemp;
1945 USARTx->
BRR = (uint16_t)(__LL_USART_DIV_SAMPLING16(PeriphClk, (uint8_t)PrescalerValue, BaudRate));
1975__STATIC_INLINE uint32_t LL_USART_GetBaudRate(
const USART_TypeDef *USARTx, uint32_t PeriphClk, uint32_t PrescalerValue,
1976 uint32_t OverSampling)
1979 uint32_t brrresult = 0x0U;
1980 uint32_t periphclkpresc = (uint32_t)(PeriphClk / (USART_PRESCALER_TAB[(uint8_t)PrescalerValue]));
1982 usartdiv = USARTx->
BRR;
1988 else if (OverSampling == LL_USART_OVERSAMPLING_8)
1990 usartdiv = (uint16_t)((usartdiv & 0xFFF0U) | ((usartdiv & 0x0007U) << 1U)) ;
1993 brrresult = (periphclkpresc * 2U) / usartdiv;
1998 if ((usartdiv & 0xFFFFU) != 0U)
2000 brrresult = periphclkpresc / usartdiv;
2013__STATIC_INLINE
void LL_USART_SetRxTimeout(
USART_TypeDef *USARTx, uint32_t Timeout)
2024__STATIC_INLINE uint32_t LL_USART_GetRxTimeout(
const USART_TypeDef *USARTx)
2036__STATIC_INLINE
void LL_USART_SetBlockLength(
USART_TypeDef *USARTx, uint32_t BlockLength)
2047__STATIC_INLINE uint32_t LL_USART_GetBlockLength(
const USART_TypeDef *USARTx)
2069__STATIC_INLINE
void LL_USART_EnableIrda(
USART_TypeDef *USARTx)
2082__STATIC_INLINE
void LL_USART_DisableIrda(
USART_TypeDef *USARTx)
2095__STATIC_INLINE uint32_t LL_USART_IsEnabledIrda(
const USART_TypeDef *USARTx)
2111__STATIC_INLINE
void LL_USART_SetIrdaPowerMode(
USART_TypeDef *USARTx, uint32_t PowerMode)
2126__STATIC_INLINE uint32_t LL_USART_GetIrdaPowerMode(
const USART_TypeDef *USARTx)
2141__STATIC_INLINE
void LL_USART_SetIrdaPrescaler(
USART_TypeDef *USARTx, uint32_t PrescalerValue)
2155__STATIC_INLINE uint32_t LL_USART_GetIrdaPrescaler(
const USART_TypeDef *USARTx)
2177__STATIC_INLINE
void LL_USART_EnableSmartcardNACK(
USART_TypeDef *USARTx)
2190__STATIC_INLINE
void LL_USART_DisableSmartcardNACK(
USART_TypeDef *USARTx)
2203__STATIC_INLINE uint32_t LL_USART_IsEnabledSmartcardNACK(
const USART_TypeDef *USARTx)
2216__STATIC_INLINE
void LL_USART_EnableSmartcard(
USART_TypeDef *USARTx)
2229__STATIC_INLINE
void LL_USART_DisableSmartcard(
USART_TypeDef *USARTx)
2242__STATIC_INLINE uint32_t LL_USART_IsEnabledSmartcard(
const USART_TypeDef *USARTx)
2261__STATIC_INLINE
void LL_USART_SetSmartcardAutoRetryCount(
USART_TypeDef *USARTx, uint32_t AutoRetryCount)
2274__STATIC_INLINE uint32_t LL_USART_GetSmartcardAutoRetryCount(
const USART_TypeDef *USARTx)
2289__STATIC_INLINE
void LL_USART_SetSmartcardPrescaler(
USART_TypeDef *USARTx, uint32_t PrescalerValue)
2303__STATIC_INLINE uint32_t LL_USART_GetSmartcardPrescaler(
const USART_TypeDef *USARTx)
2318__STATIC_INLINE
void LL_USART_SetSmartcardGuardTime(
USART_TypeDef *USARTx, uint32_t GuardTime)
2320 MODIFY_REG(USARTx->
GTPR,
USART_GTPR_GT, (uint16_t)(GuardTime << USART_GTPR_GT_Pos));
2332__STATIC_INLINE uint32_t LL_USART_GetSmartcardGuardTime(
const USART_TypeDef *USARTx)
2354__STATIC_INLINE
void LL_USART_EnableHalfDuplex(
USART_TypeDef *USARTx)
2367__STATIC_INLINE
void LL_USART_DisableHalfDuplex(
USART_TypeDef *USARTx)
2380__STATIC_INLINE uint32_t LL_USART_IsEnabledHalfDuplex(
const USART_TypeDef *USARTx)
2401__STATIC_INLINE
void LL_USART_EnableSPISlave(
USART_TypeDef *USARTx)
2414__STATIC_INLINE
void LL_USART_DisableSPISlave(
USART_TypeDef *USARTx)
2427__STATIC_INLINE uint32_t LL_USART_IsEnabledSPISlave(
const USART_TypeDef *USARTx)
2442__STATIC_INLINE
void LL_USART_EnableSPISlaveSelect(
USART_TypeDef *USARTx)
2456__STATIC_INLINE
void LL_USART_DisableSPISlaveSelect(
USART_TypeDef *USARTx)
2469__STATIC_INLINE uint32_t LL_USART_IsEnabledSPISlaveSelect(
const USART_TypeDef *USARTx)
2494__STATIC_INLINE
void LL_USART_SetLINBrkDetectionLen(
USART_TypeDef *USARTx, uint32_t LINBDLength)
2509__STATIC_INLINE uint32_t LL_USART_GetLINBrkDetectionLen(
const USART_TypeDef *USARTx)
2522__STATIC_INLINE
void LL_USART_EnableLIN(
USART_TypeDef *USARTx)
2535__STATIC_INLINE
void LL_USART_DisableLIN(
USART_TypeDef *USARTx)
2548__STATIC_INLINE uint32_t LL_USART_IsEnabledLIN(
const USART_TypeDef *USARTx)
2571__STATIC_INLINE
void LL_USART_SetDEDeassertionTime(
USART_TypeDef *USARTx, uint32_t Time)
2584__STATIC_INLINE uint32_t LL_USART_GetDEDeassertionTime(
const USART_TypeDef *USARTx)
2598__STATIC_INLINE
void LL_USART_SetDEAssertionTime(
USART_TypeDef *USARTx, uint32_t Time)
2611__STATIC_INLINE uint32_t LL_USART_GetDEAssertionTime(
const USART_TypeDef *USARTx)
2624__STATIC_INLINE
void LL_USART_EnableDEMode(
USART_TypeDef *USARTx)
2637__STATIC_INLINE
void LL_USART_DisableDEMode(
USART_TypeDef *USARTx)
2650__STATIC_INLINE uint32_t LL_USART_IsEnabledDEMode(
const USART_TypeDef *USARTx)
2666__STATIC_INLINE
void LL_USART_SetDESignalPolarity(
USART_TypeDef *USARTx, uint32_t Polarity)
2681__STATIC_INLINE uint32_t LL_USART_GetDESignalPolarity(
const USART_TypeDef *USARTx)
2720__STATIC_INLINE
void LL_USART_ConfigAsyncMode(
USART_TypeDef *USARTx)
2757__STATIC_INLINE
void LL_USART_ConfigSyncMode(
USART_TypeDef *USARTx)
2798__STATIC_INLINE
void LL_USART_ConfigLINMode(
USART_TypeDef *USARTx)
2837__STATIC_INLINE
void LL_USART_ConfigHalfDuplexMode(
USART_TypeDef *USARTx)
2878__STATIC_INLINE
void LL_USART_ConfigSmartcardMode(
USART_TypeDef *USARTx)
2922__STATIC_INLINE
void LL_USART_ConfigIrdaMode(
USART_TypeDef *USARTx)
2961__STATIC_INLINE
void LL_USART_ConfigMultiProcessMode(
USART_TypeDef *USARTx)
2986__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_PE(
const USART_TypeDef *USARTx)
2997__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_FE(
const USART_TypeDef *USARTx)
3008__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_NE(
const USART_TypeDef *USARTx)
3019__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_ORE(
const USART_TypeDef *USARTx)
3030__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_IDLE(
const USART_TypeDef *USARTx)
3035#define LL_USART_IsActiveFlag_RXNE LL_USART_IsActiveFlag_RXNE_RXFNE
3045__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_RXNE_RXFNE(
const USART_TypeDef *USARTx)
3056__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_TC(
const USART_TypeDef *USARTx)
3061#define LL_USART_IsActiveFlag_TXE LL_USART_IsActiveFlag_TXE_TXFNF
3071__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_TXE_TXFNF(
const USART_TypeDef *USARTx)
3084__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_LBD(
const USART_TypeDef *USARTx)
3097__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_nCTS(
const USART_TypeDef *USARTx)
3110__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_CTS(
const USART_TypeDef *USARTx)
3121__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_RTO(
const USART_TypeDef *USARTx)
3134__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_EOB(
const USART_TypeDef *USARTx)
3147__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_UDR(
const USART_TypeDef *USARTx)
3160__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_ABRE(
const USART_TypeDef *USARTx)
3173__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_ABR(
const USART_TypeDef *USARTx)
3184__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_BUSY(
const USART_TypeDef *USARTx)
3195__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_CM(
const USART_TypeDef *USARTx)
3206__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_SBK(
const USART_TypeDef *USARTx)
3217__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_RWU(
const USART_TypeDef *USARTx)
3230__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_WKUP(
const USART_TypeDef *USARTx)
3241__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_TEACK(
const USART_TypeDef *USARTx)
3252__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_REACK(
const USART_TypeDef *USARTx)
3265__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_TXFE(
const USART_TypeDef *USARTx)
3278__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_RXFF(
const USART_TypeDef *USARTx)
3289__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_TCBGT(
const USART_TypeDef *USARTx)
3302__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_TXFT(
const USART_TypeDef *USARTx)
3315__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_RXFT(
const USART_TypeDef *USARTx)
3326__STATIC_INLINE
void LL_USART_ClearFlag_PE(
USART_TypeDef *USARTx)
3337__STATIC_INLINE
void LL_USART_ClearFlag_FE(
USART_TypeDef *USARTx)
3348__STATIC_INLINE
void LL_USART_ClearFlag_NE(
USART_TypeDef *USARTx)
3359__STATIC_INLINE
void LL_USART_ClearFlag_ORE(
USART_TypeDef *USARTx)
3370__STATIC_INLINE
void LL_USART_ClearFlag_IDLE(
USART_TypeDef *USARTx)
3383__STATIC_INLINE
void LL_USART_ClearFlag_TXFE(
USART_TypeDef *USARTx)
3394__STATIC_INLINE
void LL_USART_ClearFlag_TC(
USART_TypeDef *USARTx)
3405__STATIC_INLINE
void LL_USART_ClearFlag_TCBGT(
USART_TypeDef *USARTx)
3418__STATIC_INLINE
void LL_USART_ClearFlag_LBD(
USART_TypeDef *USARTx)
3431__STATIC_INLINE
void LL_USART_ClearFlag_nCTS(
USART_TypeDef *USARTx)
3442__STATIC_INLINE
void LL_USART_ClearFlag_RTO(
USART_TypeDef *USARTx)
3455__STATIC_INLINE
void LL_USART_ClearFlag_EOB(
USART_TypeDef *USARTx)
3468__STATIC_INLINE
void LL_USART_ClearFlag_UDR(
USART_TypeDef *USARTx)
3479__STATIC_INLINE
void LL_USART_ClearFlag_CM(
USART_TypeDef *USARTx)
3492__STATIC_INLINE
void LL_USART_ClearFlag_WKUP(
USART_TypeDef *USARTx)
3512__STATIC_INLINE
void LL_USART_EnableIT_IDLE(
USART_TypeDef *USARTx)
3517#define LL_USART_EnableIT_RXNE LL_USART_EnableIT_RXNE_RXFNE
3527__STATIC_INLINE
void LL_USART_EnableIT_RXNE_RXFNE(
USART_TypeDef *USARTx)
3538__STATIC_INLINE
void LL_USART_EnableIT_TC(
USART_TypeDef *USARTx)
3543#define LL_USART_EnableIT_TXE LL_USART_EnableIT_TXE_TXFNF
3553__STATIC_INLINE
void LL_USART_EnableIT_TXE_TXFNF(
USART_TypeDef *USARTx)
3564__STATIC_INLINE
void LL_USART_EnableIT_PE(
USART_TypeDef *USARTx)
3575__STATIC_INLINE
void LL_USART_EnableIT_CM(
USART_TypeDef *USARTx)
3586__STATIC_INLINE
void LL_USART_EnableIT_RTO(
USART_TypeDef *USARTx)
3599__STATIC_INLINE
void LL_USART_EnableIT_EOB(
USART_TypeDef *USARTx)
3612__STATIC_INLINE
void LL_USART_EnableIT_TXFE(
USART_TypeDef *USARTx)
3623__STATIC_INLINE
void LL_USART_EnableIT_RXFF(
USART_TypeDef *USARTx)
3636__STATIC_INLINE
void LL_USART_EnableIT_LBD(
USART_TypeDef *USARTx)
3651__STATIC_INLINE
void LL_USART_EnableIT_ERROR(
USART_TypeDef *USARTx)
3664__STATIC_INLINE
void LL_USART_EnableIT_CTS(
USART_TypeDef *USARTx)
3677__STATIC_INLINE
void LL_USART_EnableIT_WKUP(
USART_TypeDef *USARTx)
3690__STATIC_INLINE
void LL_USART_EnableIT_TXFT(
USART_TypeDef *USARTx)
3703__STATIC_INLINE
void LL_USART_EnableIT_TCBGT(
USART_TypeDef *USARTx)
3716__STATIC_INLINE
void LL_USART_EnableIT_RXFT(
USART_TypeDef *USARTx)
3727__STATIC_INLINE
void LL_USART_DisableIT_IDLE(
USART_TypeDef *USARTx)
3732#define LL_USART_DisableIT_RXNE LL_USART_DisableIT_RXNE_RXFNE
3742__STATIC_INLINE
void LL_USART_DisableIT_RXNE_RXFNE(
USART_TypeDef *USARTx)
3753__STATIC_INLINE
void LL_USART_DisableIT_TC(
USART_TypeDef *USARTx)
3758#define LL_USART_DisableIT_TXE LL_USART_DisableIT_TXE_TXFNF
3768__STATIC_INLINE
void LL_USART_DisableIT_TXE_TXFNF(
USART_TypeDef *USARTx)
3779__STATIC_INLINE
void LL_USART_DisableIT_PE(
USART_TypeDef *USARTx)
3790__STATIC_INLINE
void LL_USART_DisableIT_CM(
USART_TypeDef *USARTx)
3801__STATIC_INLINE
void LL_USART_DisableIT_RTO(
USART_TypeDef *USARTx)
3814__STATIC_INLINE
void LL_USART_DisableIT_EOB(
USART_TypeDef *USARTx)
3827__STATIC_INLINE
void LL_USART_DisableIT_TXFE(
USART_TypeDef *USARTx)
3840__STATIC_INLINE
void LL_USART_DisableIT_RXFF(
USART_TypeDef *USARTx)
3853__STATIC_INLINE
void LL_USART_DisableIT_LBD(
USART_TypeDef *USARTx)
3868__STATIC_INLINE
void LL_USART_DisableIT_ERROR(
USART_TypeDef *USARTx)
3881__STATIC_INLINE
void LL_USART_DisableIT_CTS(
USART_TypeDef *USARTx)
3894__STATIC_INLINE
void LL_USART_DisableIT_WKUP(
USART_TypeDef *USARTx)
3907__STATIC_INLINE
void LL_USART_DisableIT_TXFT(
USART_TypeDef *USARTx)
3920__STATIC_INLINE
void LL_USART_DisableIT_TCBGT(
USART_TypeDef *USARTx)
3933__STATIC_INLINE
void LL_USART_DisableIT_RXFT(
USART_TypeDef *USARTx)
3944__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_IDLE(
const USART_TypeDef *USARTx)
3949#define LL_USART_IsEnabledIT_RXNE LL_USART_IsEnabledIT_RXNE_RXFNE
3959__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_RXNE_RXFNE(
const USART_TypeDef *USARTx)
3970__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_TC(
const USART_TypeDef *USARTx)
3975#define LL_USART_IsEnabledIT_TXE LL_USART_IsEnabledIT_TXE_TXFNF
3985__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_TXE_TXFNF(
const USART_TypeDef *USARTx)
3996__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_PE(
const USART_TypeDef *USARTx)
4007__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_CM(
const USART_TypeDef *USARTx)
4018__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_RTO(
const USART_TypeDef *USARTx)
4031__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_EOB(
const USART_TypeDef *USARTx)
4044__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_TXFE(
const USART_TypeDef *USARTx)
4057__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_RXFF(
const USART_TypeDef *USARTx)
4070__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_LBD(
const USART_TypeDef *USARTx)
4081__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_ERROR(
const USART_TypeDef *USARTx)
4094__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_CTS(
const USART_TypeDef *USARTx)
4107__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_WKUP(
const USART_TypeDef *USARTx)
4120__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_TXFT(
const USART_TypeDef *USARTx)
4133__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_TCBGT(
const USART_TypeDef *USARTx)
4146__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_RXFT(
const USART_TypeDef *USARTx)
4166__STATIC_INLINE
void LL_USART_EnableDMAReq_RX(
USART_TypeDef *USARTx)
4177__STATIC_INLINE
void LL_USART_DisableDMAReq_RX(
USART_TypeDef *USARTx)
4188__STATIC_INLINE uint32_t LL_USART_IsEnabledDMAReq_RX(
const USART_TypeDef *USARTx)
4199__STATIC_INLINE
void LL_USART_EnableDMAReq_TX(
USART_TypeDef *USARTx)
4210__STATIC_INLINE
void LL_USART_DisableDMAReq_TX(
USART_TypeDef *USARTx)
4221__STATIC_INLINE uint32_t LL_USART_IsEnabledDMAReq_TX(
const USART_TypeDef *USARTx)
4232__STATIC_INLINE
void LL_USART_EnableDMADeactOnRxErr(
USART_TypeDef *USARTx)
4243__STATIC_INLINE
void LL_USART_DisableDMADeactOnRxErr(
USART_TypeDef *USARTx)
4254__STATIC_INLINE uint32_t LL_USART_IsEnabledDMADeactOnRxErr(
const USART_TypeDef *USARTx)
4269__STATIC_INLINE uint32_t LL_USART_DMA_GetRegAddr(
const USART_TypeDef *USARTx, uint32_t Direction)
4271 uint32_t data_reg_addr;
4273 if (Direction == LL_USART_DMA_REG_DATA_TRANSMIT)
4276 data_reg_addr = (uint32_t) &(USARTx->
TDR);
4281 data_reg_addr = (uint32_t) &(USARTx->
RDR);
4284 return data_reg_addr;
4302__STATIC_INLINE uint8_t LL_USART_ReceiveData8(
const USART_TypeDef *USARTx)
4313__STATIC_INLINE uint16_t LL_USART_ReceiveData9(
const USART_TypeDef *USARTx)
4325__STATIC_INLINE
void LL_USART_TransmitData8(
USART_TypeDef *USARTx, uint8_t Value)
4327 USARTx->
TDR = Value;
4337__STATIC_INLINE
void LL_USART_TransmitData9(
USART_TypeDef *USARTx, uint16_t Value)
4339 USARTx->
TDR = (uint16_t)(Value & 0x1FFUL);
4359__STATIC_INLINE
void LL_USART_RequestAutoBaudRate(
USART_TypeDef *USARTx)
4370__STATIC_INLINE
void LL_USART_RequestBreakSending(
USART_TypeDef *USARTx)
4381__STATIC_INLINE
void LL_USART_RequestEnterMuteMode(
USART_TypeDef *USARTx)
4396__STATIC_INLINE
void LL_USART_RequestRxDataFlush(
USART_TypeDef *USARTx)
4409__STATIC_INLINE
void LL_USART_RequestTxDataFlush(
USART_TypeDef *USARTx)
4418#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__)
4424ErrorStatus LL_USART_Init(
USART_TypeDef *USARTx,
const LL_USART_InitTypeDef *USART_InitStruct);
4425void LL_USART_StructInit(LL_USART_InitTypeDef *USART_InitStruct);
4426ErrorStatus LL_USART_ClockInit(
USART_TypeDef *USARTx,
const LL_USART_ClockInitTypeDef *USART_ClockInitStruct);
4427void LL_USART_ClockStructInit(LL_USART_ClockInitTypeDef *USART_ClockInitStruct);
#define USART_ICR_WUCF
Definition: stm32h723xx.h:21309
#define USART_ISR_NE
Definition: stm32h723xx.h:21187
#define USART_ISR_RTOF
Definition: stm32h723xx.h:21214
#define USART_ISR_RWU
Definition: stm32h723xx.h:21238
#define USART_CR3_TCBGTIE
Definition: stm32h723xx.h:21120
#define USART_CR2_SLVEN
Definition: stm32h723xx.h:20989
#define USART_RTOR_BLEN
Definition: stm32h723xx.h:21159
#define USART_ISR_TXE_TXFNF
Definition: stm32h723xx.h:21202
#define USART_ISR_TXFT
Definition: stm32h723xx.h:21262
#define USART_CR1_UESM
Definition: stm32h723xx.h:20901
#define USART_CR3_DEP
Definition: stm32h723xx.h:21100
#define USART_CR3_IRLP
Definition: stm32h723xx.h:21061
#define USART_PRESC_PRESCALER
Definition: stm32h723xx.h:21324
#define USART_CR1_PEIE
Definition: stm32h723xx.h:20922
#define USART_ISR_FE
Definition: stm32h723xx.h:21184
#define USART_RQR_MMRQ
Definition: stm32h723xx.h:21170
#define USART_CR2_STOP_1
Definition: stm32h723xx.h:21018
#define USART_CR1_UE
Definition: stm32h723xx.h:20898
#define USART_RQR_SBKRQ
Definition: stm32h723xx.h:21167
#define USART_CR2_ADDM7
Definition: stm32h723xx.h:20995
#define USART_CR1_PS
Definition: stm32h723xx.h:20925
#define USART_CR3_IREN
Definition: stm32h723xx.h:21058
#define USART_ISR_EOBF
Definition: stm32h723xx.h:21217
#define USART_CR3_OVRDIS
Definition: stm32h723xx.h:21091
#define USART_CR2_CPHA
Definition: stm32h723xx.h:21007
#define USART_ICR_ORECF
Definition: stm32h723xx.h:21276
#define USART_ICR_RTOCF
Definition: stm32h723xx.h:21297
#define USART_CR2_ADD
Definition: stm32h723xx.h:21050
#define USART_CR3_NACK
Definition: stm32h723xx.h:21067
#define USART_CR3_TXFTCFG
Definition: stm32h723xx.h:21132
#define USART_ICR_PECF
Definition: stm32h723xx.h:21267
#define USART_CR2_CLKEN
Definition: stm32h723xx.h:21013
#define USART_ICR_EOBCF
Definition: stm32h723xx.h:21300
#define USART_ICR_TCBGTCF
Definition: stm32h723xx.h:21288
#define USART_ICR_TXFECF
Definition: stm32h723xx.h:21282
#define USART_CR3_RXFTIE
Definition: stm32h723xx.h:21129
#define USART_CR2_LBCL
Definition: stm32h723xx.h:21004
#define USART_CR1_MME
Definition: stm32h723xx.h:20940
#define USART_CR2_SWAP
Definition: stm32h723xx.h:21024
#define USART_CR1_IDLEIE
Definition: stm32h723xx.h:20910
#define USART_ICR_CMCF
Definition: stm32h723xx.h:21306
#define USART_CR3_TXFTIE
Definition: stm32h723xx.h:21117
#define USART_CR3_DMAT
Definition: stm32h723xx.h:21076
#define USART_RTOR_RTO
Definition: stm32h723xx.h:21156
#define USART_CR1_PCE
Definition: stm32h723xx.h:20928
#define USART_CR3_CTSIE
Definition: stm32h723xx.h:21085
#define USART_CR1_DEAT
Definition: stm32h723xx.h:20957
#define USART_CR1_RXFFIE
Definition: stm32h723xx.h:20980
#define USART_CR2_MSBFIRST
Definition: stm32h723xx.h:21036
#define USART_ISR_SBKF
Definition: stm32h723xx.h:21235
#define USART_CR3_WUS
Definition: stm32h723xx.h:21109
#define USART_CR2_ABRMODE
Definition: stm32h723xx.h:21042
#define USART_RQR_RXFRQ
Definition: stm32h723xx.h:21173
#define USART_CR3_RTSE
Definition: stm32h723xx.h:21079
#define USART_CR2_LBDL
Definition: stm32h723xx.h:20998
#define USART_CR3_WUFIE
Definition: stm32h723xx.h:21114
#define USART_ISR_CMF
Definition: stm32h723xx.h:21232
#define USART_CR1_RXNEIE_RXFNEIE
Definition: stm32h723xx.h:20913
#define USART_ICR_FECF
Definition: stm32h723xx.h:21270
#define USART_ISR_CTS
Definition: stm32h723xx.h:21211
#define USART_ICR_CTSCF
Definition: stm32h723xx.h:21294
#define USART_GTPR_GT
Definition: stm32h723xx.h:21151
#define USART_CR2_DATAINV
Definition: stm32h723xx.h:21033
#define USART_CR3_SCEN
Definition: stm32h723xx.h:21070
#define USART_CR1_TXEIE_TXFNFIE
Definition: stm32h723xx.h:20919
#define USART_CR1_M
Definition: stm32h723xx.h:20934
#define USART_CR3_ONEBIT
Definition: stm32h723xx.h:21088
#define USART_ICR_IDLECF
Definition: stm32h723xx.h:21279
#define USART_ISR_ORE
Definition: stm32h723xx.h:21190
#define USART_ISR_CTSIF
Definition: stm32h723xx.h:21208
#define USART_CR2_LBDIE
Definition: stm32h723xx.h:21001
#define USART_GTPR_PSC
Definition: stm32h723xx.h:21148
#define USART_ISR_PE
Definition: stm32h723xx.h:21181
#define USART_CR3_CTSE
Definition: stm32h723xx.h:21082
#define USART_CR1_TCIE
Definition: stm32h723xx.h:20916
#define USART_RQR_TXFRQ
Definition: stm32h723xx.h:21176
#define USART_ISR_TC
Definition: stm32h723xx.h:21199
#define USART_ISR_REACK
Definition: stm32h723xx.h:21247
#define USART_CR2_ABREN
Definition: stm32h723xx.h:21039
#define USART_ISR_RXFF
Definition: stm32h723xx.h:21253
#define USART_CR1_CMIE
Definition: stm32h723xx.h:20943
#define USART_ICR_LBDCF
Definition: stm32h723xx.h:21291
#define USART_CR3_EIE
Definition: stm32h723xx.h:21055
#define USART_CR1_DEDT
Definition: stm32h723xx.h:20949
#define USART_CR1_TXFEIE
Definition: stm32h723xx.h:20977
#define USART_CR2_RTOEN
Definition: stm32h723xx.h:21047
#define USART_CR3_RXFTCFG
Definition: stm32h723xx.h:21123
#define USART_ISR_RXNE_RXFNE
Definition: stm32h723xx.h:21196
#define USART_CR1_RTOIE
Definition: stm32h723xx.h:20965
#define USART_ICR_UDRCF
Definition: stm32h723xx.h:21303
#define USART_CR3_SCARCNT
Definition: stm32h723xx.h:21103
#define USART_CR3_HDSEL
Definition: stm32h723xx.h:21064
#define USART_CR2_LINEN
Definition: stm32h723xx.h:21021
#define USART_ICR_NECF
Definition: stm32h723xx.h:21273
#define USART_CR3_DEM
Definition: stm32h723xx.h:21097
#define USART_ISR_IDLE
Definition: stm32h723xx.h:21193
#define USART_ICR_TCCF
Definition: stm32h723xx.h:21285
#define USART_RQR_ABRRQ
Definition: stm32h723xx.h:21164
#define USART_CR2_DIS_NSS
Definition: stm32h723xx.h:20992
#define USART_CR1_WAKE
Definition: stm32h723xx.h:20931
#define USART_ISR_WUF
Definition: stm32h723xx.h:21241
#define USART_CR1_RE
Definition: stm32h723xx.h:20904
#define USART_CR2_TXINV
Definition: stm32h723xx.h:21030
#define USART_CR1_TE
Definition: stm32h723xx.h:20907
#define USART_CR3_DDRE
Definition: stm32h723xx.h:21094
#define USART_CR1_EOBIE
Definition: stm32h723xx.h:20968
#define USART_ISR_ABRE
Definition: stm32h723xx.h:21223
#define USART_ISR_RXFT
Definition: stm32h723xx.h:21259
#define USART_ISR_TCBGT
Definition: stm32h723xx.h:21256
#define USART_RDR_RDR
Definition: stm32h723xx.h:21314
#define USART_CR1_OVER8
Definition: stm32h723xx.h:20946
#define USART_CR2_STOP_0
Definition: stm32h723xx.h:21017
#define USART_ISR_UDR
Definition: stm32h723xx.h:21220
#define USART_ISR_LBDF
Definition: stm32h723xx.h:21205
#define USART_ISR_TEACK
Definition: stm32h723xx.h:21244
#define USART_ISR_TXFE
Definition: stm32h723xx.h:21250
#define USART_CR2_STOP
Definition: stm32h723xx.h:21016
#define USART_CR1_FIFOEN
Definition: stm32h723xx.h:20974
#define USART_ISR_BUSY
Definition: stm32h723xx.h:21229
#define USART_CR2_CPOL
Definition: stm32h723xx.h:21010
#define USART_ISR_ABRF
Definition: stm32h723xx.h:21226
#define USART_CR3_DMAR
Definition: stm32h723xx.h:21073
#define USART_CR2_RXINV
Definition: stm32h723xx.h:21027
CMSIS STM32H7xx Device Peripheral Access Layer Header File.
Universal Synchronous Asynchronous Receiver Transmitter.
Definition: stm32h723xx.h:1596
__IO uint32_t TDR
Definition: stm32h723xx.h:1607
__IO uint32_t RTOR
Definition: stm32h723xx.h:1602
__IO uint32_t CR1
Definition: stm32h723xx.h:1597
__IO uint32_t BRR
Definition: stm32h723xx.h:1600
__IO uint32_t ISR
Definition: stm32h723xx.h:1604
__IO uint32_t RDR
Definition: stm32h723xx.h:1606
__IO uint32_t CR2
Definition: stm32h723xx.h:1598
__IO uint32_t ICR
Definition: stm32h723xx.h:1605
__IO uint32_t PRESC
Definition: stm32h723xx.h:1608
__IO uint32_t RQR
Definition: stm32h723xx.h:1603
__IO uint32_t GTPR
Definition: stm32h723xx.h:1601
__IO uint32_t CR3
Definition: stm32h723xx.h:1599