You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

497 lines
20 KiB

  1. /**
  2. ******************************************************************************
  3. * @file stm32h7xx_ll_usart.c
  4. * @author MCD Application Team
  5. * @brief USART LL module driver.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
  10. * All rights reserved.</center></h2>
  11. *
  12. * This software component is licensed by ST under BSD 3-Clause license,
  13. * the "License"; You may not use this file except in compliance with the
  14. * License. You may obtain a copy of the License at:
  15. * opensource.org/licenses/BSD-3-Clause
  16. *
  17. ******************************************************************************
  18. */
  19. #if defined(USE_FULL_LL_DRIVER)
  20. /* Includes ------------------------------------------------------------------*/
  21. #include "stm32h7xx_ll_usart.h"
  22. #include "stm32h7xx_ll_rcc.h"
  23. #include "stm32h7xx_ll_bus.h"
  24. #ifdef USE_FULL_ASSERT
  25. #include "stm32_assert.h"
  26. #else
  27. #define assert_param(expr) ((void)0U)
  28. #endif /* USE_FULL_ASSERT */
  29. /** @addtogroup STM32H7xx_LL_Driver
  30. * @{
  31. */
  32. #if defined (USART1) || defined (USART2) || defined (USART3) || defined (USART6) || defined (UART4) || defined (UART5) || defined (UART7) || defined (UART8) || defined (UART9) || defined (USART10)
  33. /** @addtogroup USART_LL
  34. * @{
  35. */
  36. /* Private types -------------------------------------------------------------*/
  37. /* Private variables ---------------------------------------------------------*/
  38. /* Private constants ---------------------------------------------------------*/
  39. /* Private macros ------------------------------------------------------------*/
  40. /** @addtogroup USART_LL_Private_Macros
  41. * @{
  42. */
  43. #define IS_LL_USART_PRESCALER(__VALUE__) (((__VALUE__) == LL_USART_PRESCALER_DIV1) \
  44. || ((__VALUE__) == LL_USART_PRESCALER_DIV2) \
  45. || ((__VALUE__) == LL_USART_PRESCALER_DIV4) \
  46. || ((__VALUE__) == LL_USART_PRESCALER_DIV6) \
  47. || ((__VALUE__) == LL_USART_PRESCALER_DIV8) \
  48. || ((__VALUE__) == LL_USART_PRESCALER_DIV10) \
  49. || ((__VALUE__) == LL_USART_PRESCALER_DIV12) \
  50. || ((__VALUE__) == LL_USART_PRESCALER_DIV16) \
  51. || ((__VALUE__) == LL_USART_PRESCALER_DIV32) \
  52. || ((__VALUE__) == LL_USART_PRESCALER_DIV64) \
  53. || ((__VALUE__) == LL_USART_PRESCALER_DIV128) \
  54. || ((__VALUE__) == LL_USART_PRESCALER_DIV256))
  55. /* __BAUDRATE__ The maximum Baud Rate is derived from the maximum clock available
  56. * divided by the smallest oversampling used on the USART (i.e. 8) */
  57. #define IS_LL_USART_BAUDRATE(__BAUDRATE__) ((__BAUDRATE__) <= 12500000U)
  58. /* __VALUE__ In case of oversampling by 16 and 8, BRR content must be greater than or equal to 16d. */
  59. #define IS_LL_USART_BRR_MIN(__VALUE__) ((__VALUE__) >= 16U)
  60. /* __VALUE__ BRR content must be lower than or equal to 0xFFFF. */
  61. #define IS_LL_USART_BRR_MAX(__VALUE__) ((__VALUE__) <= 0x0000FFFFU)
  62. #define IS_LL_USART_DIRECTION(__VALUE__) (((__VALUE__) == LL_USART_DIRECTION_NONE) \
  63. || ((__VALUE__) == LL_USART_DIRECTION_RX) \
  64. || ((__VALUE__) == LL_USART_DIRECTION_TX) \
  65. || ((__VALUE__) == LL_USART_DIRECTION_TX_RX))
  66. #define IS_LL_USART_PARITY(__VALUE__) (((__VALUE__) == LL_USART_PARITY_NONE) \
  67. || ((__VALUE__) == LL_USART_PARITY_EVEN) \
  68. || ((__VALUE__) == LL_USART_PARITY_ODD))
  69. #define IS_LL_USART_DATAWIDTH(__VALUE__) (((__VALUE__) == LL_USART_DATAWIDTH_7B) \
  70. || ((__VALUE__) == LL_USART_DATAWIDTH_8B) \
  71. || ((__VALUE__) == LL_USART_DATAWIDTH_9B))
  72. #define IS_LL_USART_OVERSAMPLING(__VALUE__) (((__VALUE__) == LL_USART_OVERSAMPLING_16) \
  73. || ((__VALUE__) == LL_USART_OVERSAMPLING_8))
  74. #define IS_LL_USART_LASTBITCLKOUTPUT(__VALUE__) (((__VALUE__) == LL_USART_LASTCLKPULSE_NO_OUTPUT) \
  75. || ((__VALUE__) == LL_USART_LASTCLKPULSE_OUTPUT))
  76. #define IS_LL_USART_CLOCKPHASE(__VALUE__) (((__VALUE__) == LL_USART_PHASE_1EDGE) \
  77. || ((__VALUE__) == LL_USART_PHASE_2EDGE))
  78. #define IS_LL_USART_CLOCKPOLARITY(__VALUE__) (((__VALUE__) == LL_USART_POLARITY_LOW) \
  79. || ((__VALUE__) == LL_USART_POLARITY_HIGH))
  80. #define IS_LL_USART_CLOCKOUTPUT(__VALUE__) (((__VALUE__) == LL_USART_CLOCK_DISABLE) \
  81. || ((__VALUE__) == LL_USART_CLOCK_ENABLE))
  82. #define IS_LL_USART_STOPBITS(__VALUE__) (((__VALUE__) == LL_USART_STOPBITS_0_5) \
  83. || ((__VALUE__) == LL_USART_STOPBITS_1) \
  84. || ((__VALUE__) == LL_USART_STOPBITS_1_5) \
  85. || ((__VALUE__) == LL_USART_STOPBITS_2))
  86. #define IS_LL_USART_HWCONTROL(__VALUE__) (((__VALUE__) == LL_USART_HWCONTROL_NONE) \
  87. || ((__VALUE__) == LL_USART_HWCONTROL_RTS) \
  88. || ((__VALUE__) == LL_USART_HWCONTROL_CTS) \
  89. || ((__VALUE__) == LL_USART_HWCONTROL_RTS_CTS))
  90. /**
  91. * @}
  92. */
  93. /* Private function prototypes -----------------------------------------------*/
  94. /* Exported functions --------------------------------------------------------*/
  95. /** @addtogroup USART_LL_Exported_Functions
  96. * @{
  97. */
  98. /** @addtogroup USART_LL_EF_Init
  99. * @{
  100. */
  101. /**
  102. * @brief De-initialize USART registers (Registers restored to their default values).
  103. * @param USARTx USART Instance
  104. * @retval An ErrorStatus enumeration value:
  105. * - SUCCESS: USART registers are de-initialized
  106. * - ERROR: USART registers are not de-initialized
  107. */
  108. ErrorStatus LL_USART_DeInit(USART_TypeDef *USARTx)
  109. {
  110. ErrorStatus status = SUCCESS;
  111. /* Check the parameters */
  112. assert_param(IS_UART_INSTANCE(USARTx));
  113. if (USARTx == USART1)
  114. {
  115. /* Force reset of USART clock */
  116. LL_APB2_GRP1_ForceReset(LL_APB2_GRP1_PERIPH_USART1);
  117. /* Release reset of USART clock */
  118. LL_APB2_GRP1_ReleaseReset(LL_APB2_GRP1_PERIPH_USART1);
  119. }
  120. else if (USARTx == USART2)
  121. {
  122. /* Force reset of USART clock */
  123. LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_USART2);
  124. /* Release reset of USART clock */
  125. LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_USART2);
  126. }
  127. else if (USARTx == USART3)
  128. {
  129. /* Force reset of USART clock */
  130. LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_USART3);
  131. /* Release reset of USART clock */
  132. LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_USART3);
  133. }
  134. else if (USARTx == UART4)
  135. {
  136. /* Force reset of UART clock */
  137. LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_UART4);
  138. /* Release reset of UART clock */
  139. LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_UART4);
  140. }
  141. else if (USARTx == UART5)
  142. {
  143. /* Force reset of UART clock */
  144. LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_UART5);
  145. /* Release reset of UART clock */
  146. LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_UART5);
  147. }
  148. else if (USARTx == USART6)
  149. {
  150. /* Force reset of USART clock */
  151. LL_APB2_GRP1_ForceReset(LL_APB2_GRP1_PERIPH_USART6);
  152. /* Release reset of USART clock */
  153. LL_APB2_GRP1_ReleaseReset(LL_APB2_GRP1_PERIPH_USART6);
  154. }
  155. else if (USARTx == UART7)
  156. {
  157. /* Force reset of UART clock */
  158. LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_UART7);
  159. /* Release reset of UART clock */
  160. LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_UART7);
  161. }
  162. else if (USARTx == UART8)
  163. {
  164. /* Force reset of UART clock */
  165. LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_UART8);
  166. /* Release reset of UART clock */
  167. LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_UART8);
  168. }
  169. #if defined(UART9)
  170. else if (USARTx == UART9)
  171. {
  172. /* Force reset of UART clock */
  173. LL_APB2_GRP1_ForceReset(LL_APB2_GRP1_PERIPH_UART9);
  174. /* Release reset of UART clock */
  175. LL_APB2_GRP1_ReleaseReset(LL_APB2_GRP1_PERIPH_UART9);
  176. }
  177. #endif /* UART9 */
  178. #if defined(USART10)
  179. else if (USARTx == USART10)
  180. {
  181. /* Force reset of USART clock */
  182. LL_APB2_GRP1_ForceReset(LL_APB2_GRP1_PERIPH_USART10);
  183. /* Release reset of USART clock */
  184. LL_APB2_GRP1_ReleaseReset(LL_APB2_GRP1_PERIPH_USART10);
  185. }
  186. #endif /* USART10 */
  187. else
  188. {
  189. status = ERROR;
  190. }
  191. return (status);
  192. }
  193. /**
  194. * @brief Initialize USART registers according to the specified
  195. * parameters in USART_InitStruct.
  196. * @note As some bits in USART configuration registers can only be written when the USART is disabled (USART_CR1_UE bit =0),
  197. * USART Peripheral should be in disabled state prior calling this function. Otherwise, ERROR result will be returned.
  198. * @note Baud rate value stored in USART_InitStruct BaudRate field, should be valid (different from 0).
  199. * @param USARTx USART Instance
  200. * @param USART_InitStruct pointer to a LL_USART_InitTypeDef structure
  201. * that contains the configuration information for the specified USART peripheral.
  202. * @retval An ErrorStatus enumeration value:
  203. * - SUCCESS: USART registers are initialized according to USART_InitStruct content
  204. * - ERROR: Problem occurred during USART Registers initialization
  205. */
  206. ErrorStatus LL_USART_Init(USART_TypeDef *USARTx, LL_USART_InitTypeDef *USART_InitStruct)
  207. {
  208. ErrorStatus status = ERROR;
  209. uint32_t periphclk = LL_RCC_PERIPH_FREQUENCY_NO;
  210. /* Check the parameters */
  211. assert_param(IS_UART_INSTANCE(USARTx));
  212. assert_param(IS_LL_USART_PRESCALER(USART_InitStruct->PrescalerValue));
  213. assert_param(IS_LL_USART_BAUDRATE(USART_InitStruct->BaudRate));
  214. assert_param(IS_LL_USART_DATAWIDTH(USART_InitStruct->DataWidth));
  215. assert_param(IS_LL_USART_STOPBITS(USART_InitStruct->StopBits));
  216. assert_param(IS_LL_USART_PARITY(USART_InitStruct->Parity));
  217. assert_param(IS_LL_USART_DIRECTION(USART_InitStruct->TransferDirection));
  218. assert_param(IS_LL_USART_HWCONTROL(USART_InitStruct->HardwareFlowControl));
  219. assert_param(IS_LL_USART_OVERSAMPLING(USART_InitStruct->OverSampling));
  220. /* USART needs to be in disabled state, in order to be able to configure some bits in
  221. CRx registers */
  222. if (LL_USART_IsEnabled(USARTx) == 0U)
  223. {
  224. /*---------------------------- USART CR1 Configuration ---------------------
  225. * Configure USARTx CR1 (USART Word Length, Parity, Mode and Oversampling bits) with parameters:
  226. * - DataWidth: USART_CR1_M bits according to USART_InitStruct->DataWidth value
  227. * - Parity: USART_CR1_PCE, USART_CR1_PS bits according to USART_InitStruct->Parity value
  228. * - TransferDirection: USART_CR1_TE, USART_CR1_RE bits according to USART_InitStruct->TransferDirection value
  229. * - Oversampling: USART_CR1_OVER8 bit according to USART_InitStruct->OverSampling value.
  230. */
  231. MODIFY_REG(USARTx->CR1,
  232. (USART_CR1_M | USART_CR1_PCE | USART_CR1_PS |
  233. USART_CR1_TE | USART_CR1_RE | USART_CR1_OVER8),
  234. (USART_InitStruct->DataWidth | USART_InitStruct->Parity |
  235. USART_InitStruct->TransferDirection | USART_InitStruct->OverSampling));
  236. /*---------------------------- USART CR2 Configuration ---------------------
  237. * Configure USARTx CR2 (Stop bits) with parameters:
  238. * - Stop Bits: USART_CR2_STOP bits according to USART_InitStruct->StopBits value.
  239. * - CLKEN, CPOL, CPHA and LBCL bits are to be configured using LL_USART_ClockInit().
  240. */
  241. LL_USART_SetStopBitsLength(USARTx, USART_InitStruct->StopBits);
  242. /*---------------------------- USART CR3 Configuration ---------------------
  243. * Configure USARTx CR3 (Hardware Flow Control) with parameters:
  244. * - HardwareFlowControl: USART_CR3_RTSE, USART_CR3_CTSE bits according to USART_InitStruct->HardwareFlowControl value.
  245. */
  246. LL_USART_SetHWFlowCtrl(USARTx, USART_InitStruct->HardwareFlowControl);
  247. /*---------------------------- USART BRR Configuration ---------------------
  248. * Retrieve Clock frequency used for USART Peripheral
  249. */
  250. if (USARTx == USART1)
  251. {
  252. periphclk = LL_RCC_GetUSARTClockFreq(LL_RCC_USART16_CLKSOURCE);
  253. }
  254. else if (USARTx == USART2)
  255. {
  256. periphclk = LL_RCC_GetUSARTClockFreq(LL_RCC_USART234578_CLKSOURCE);
  257. }
  258. else if (USARTx == USART3)
  259. {
  260. periphclk = LL_RCC_GetUSARTClockFreq(LL_RCC_USART234578_CLKSOURCE);
  261. }
  262. else if (USARTx == UART4)
  263. {
  264. periphclk = LL_RCC_GetUSARTClockFreq(LL_RCC_USART234578_CLKSOURCE);
  265. }
  266. else if (USARTx == UART5)
  267. {
  268. periphclk = LL_RCC_GetUSARTClockFreq(LL_RCC_USART234578_CLKSOURCE);
  269. }
  270. else if (USARTx == USART6)
  271. {
  272. periphclk = LL_RCC_GetUSARTClockFreq(LL_RCC_USART16_CLKSOURCE);
  273. }
  274. else if (USARTx == UART7)
  275. {
  276. periphclk = LL_RCC_GetUSARTClockFreq(LL_RCC_USART234578_CLKSOURCE);
  277. }
  278. else if (USARTx == UART8)
  279. {
  280. periphclk = LL_RCC_GetUSARTClockFreq(LL_RCC_USART234578_CLKSOURCE);
  281. }
  282. #if defined(UART9)
  283. else if (USARTx == UART9)
  284. {
  285. periphclk = LL_RCC_GetUSARTClockFreq(LL_RCC_USART16_CLKSOURCE);
  286. }
  287. #endif /* UART9 */
  288. #if defined(USART10)
  289. else if (USARTx == USART10)
  290. {
  291. periphclk = LL_RCC_GetUSARTClockFreq(LL_RCC_USART16_CLKSOURCE);
  292. }
  293. #endif /* USART10 */
  294. else
  295. {
  296. /* Nothing to do, as error code is already assigned to ERROR value */
  297. }
  298. /* Configure the USART Baud Rate :
  299. - prescaler value is required
  300. - valid baud rate value (different from 0) is required
  301. - Peripheral clock as returned by RCC service, should be valid (different from 0).
  302. */
  303. if ((periphclk != LL_RCC_PERIPH_FREQUENCY_NO)
  304. && (USART_InitStruct->BaudRate != 0U))
  305. {
  306. status = SUCCESS;
  307. LL_USART_SetBaudRate(USARTx,
  308. periphclk,
  309. USART_InitStruct->PrescalerValue,
  310. USART_InitStruct->OverSampling,
  311. USART_InitStruct->BaudRate);
  312. /* Check BRR is greater than or equal to 16d */
  313. assert_param(IS_LL_USART_BRR_MIN(USARTx->BRR));
  314. /* Check BRR is lower than or equal to 0xFFFF */
  315. assert_param(IS_LL_USART_BRR_MAX(USARTx->BRR));
  316. }
  317. /*---------------------------- USART PRESC Configuration -----------------------
  318. * Configure USARTx PRESC (Prescaler) with parameters:
  319. * - PrescalerValue: USART_PRESC_PRESCALER bits according to USART_InitStruct->PrescalerValue value.
  320. */
  321. LL_USART_SetPrescaler(USARTx, USART_InitStruct->PrescalerValue);
  322. }
  323. /* Endif (=> USART not in Disabled state => return ERROR) */
  324. return (status);
  325. }
  326. /**
  327. * @brief Set each @ref LL_USART_InitTypeDef field to default value.
  328. * @param USART_InitStruct pointer to a @ref LL_USART_InitTypeDef structure
  329. * whose fields will be set to default values.
  330. * @retval None
  331. */
  332. void LL_USART_StructInit(LL_USART_InitTypeDef *USART_InitStruct)
  333. {
  334. /* Set USART_InitStruct fields to default values */
  335. USART_InitStruct->PrescalerValue = LL_USART_PRESCALER_DIV1;
  336. USART_InitStruct->BaudRate = 9600U;
  337. USART_InitStruct->DataWidth = LL_USART_DATAWIDTH_8B;
  338. USART_InitStruct->StopBits = LL_USART_STOPBITS_1;
  339. USART_InitStruct->Parity = LL_USART_PARITY_NONE ;
  340. USART_InitStruct->TransferDirection = LL_USART_DIRECTION_TX_RX;
  341. USART_InitStruct->HardwareFlowControl = LL_USART_HWCONTROL_NONE;
  342. USART_InitStruct->OverSampling = LL_USART_OVERSAMPLING_16;
  343. }
  344. /**
  345. * @brief Initialize USART Clock related settings according to the
  346. * specified parameters in the USART_ClockInitStruct.
  347. * @note As some bits in USART configuration registers can only be written when the USART is disabled (USART_CR1_UE bit =0),
  348. * USART Peripheral should be in disabled state prior calling this function. Otherwise, ERROR result will be returned.
  349. * @param USARTx USART Instance
  350. * @param USART_ClockInitStruct pointer to a @ref LL_USART_ClockInitTypeDef structure
  351. * that contains the Clock configuration information for the specified USART peripheral.
  352. * @retval An ErrorStatus enumeration value:
  353. * - SUCCESS: USART registers related to Clock settings are initialized according to USART_ClockInitStruct content
  354. * - ERROR: Problem occurred during USART Registers initialization
  355. */
  356. ErrorStatus LL_USART_ClockInit(USART_TypeDef *USARTx, LL_USART_ClockInitTypeDef *USART_ClockInitStruct)
  357. {
  358. ErrorStatus status = SUCCESS;
  359. /* Check USART Instance and Clock signal output parameters */
  360. assert_param(IS_UART_INSTANCE(USARTx));
  361. assert_param(IS_LL_USART_CLOCKOUTPUT(USART_ClockInitStruct->ClockOutput));
  362. /* USART needs to be in disabled state, in order to be able to configure some bits in
  363. CRx registers */
  364. if (LL_USART_IsEnabled(USARTx) == 0U)
  365. {
  366. /*---------------------------- USART CR2 Configuration -----------------------*/
  367. /* If Clock signal has to be output */
  368. if (USART_ClockInitStruct->ClockOutput == LL_USART_CLOCK_DISABLE)
  369. {
  370. /* Deactivate Clock signal delivery :
  371. * - Disable Clock Output: USART_CR2_CLKEN cleared
  372. */
  373. LL_USART_DisableSCLKOutput(USARTx);
  374. }
  375. else
  376. {
  377. /* Ensure USART instance is USART capable */
  378. assert_param(IS_USART_INSTANCE(USARTx));
  379. /* Check clock related parameters */
  380. assert_param(IS_LL_USART_CLOCKPOLARITY(USART_ClockInitStruct->ClockPolarity));
  381. assert_param(IS_LL_USART_CLOCKPHASE(USART_ClockInitStruct->ClockPhase));
  382. assert_param(IS_LL_USART_LASTBITCLKOUTPUT(USART_ClockInitStruct->LastBitClockPulse));
  383. /*---------------------------- USART CR2 Configuration -----------------------
  384. * Configure USARTx CR2 (Clock signal related bits) with parameters:
  385. * - Enable Clock Output: USART_CR2_CLKEN set
  386. * - Clock Polarity: USART_CR2_CPOL bit according to USART_ClockInitStruct->ClockPolarity value
  387. * - Clock Phase: USART_CR2_CPHA bit according to USART_ClockInitStruct->ClockPhase value
  388. * - Last Bit Clock Pulse Output: USART_CR2_LBCL bit according to USART_ClockInitStruct->LastBitClockPulse value.
  389. */
  390. MODIFY_REG(USARTx->CR2,
  391. USART_CR2_CLKEN | USART_CR2_CPHA | USART_CR2_CPOL | USART_CR2_LBCL,
  392. USART_CR2_CLKEN | USART_ClockInitStruct->ClockPolarity |
  393. USART_ClockInitStruct->ClockPhase | USART_ClockInitStruct->LastBitClockPulse);
  394. }
  395. }
  396. /* Else (USART not in Disabled state => return ERROR */
  397. else
  398. {
  399. status = ERROR;
  400. }
  401. return (status);
  402. }
  403. /**
  404. * @brief Set each field of a @ref LL_USART_ClockInitTypeDef type structure to default value.
  405. * @param USART_ClockInitStruct pointer to a @ref LL_USART_ClockInitTypeDef structure
  406. * whose fields will be set to default values.
  407. * @retval None
  408. */
  409. void LL_USART_ClockStructInit(LL_USART_ClockInitTypeDef *USART_ClockInitStruct)
  410. {
  411. /* Set LL_USART_ClockInitStruct fields with default values */
  412. USART_ClockInitStruct->ClockOutput = LL_USART_CLOCK_DISABLE;
  413. USART_ClockInitStruct->ClockPolarity = LL_USART_POLARITY_LOW; /* Not relevant when ClockOutput = LL_USART_CLOCK_DISABLE */
  414. USART_ClockInitStruct->ClockPhase = LL_USART_PHASE_1EDGE; /* Not relevant when ClockOutput = LL_USART_CLOCK_DISABLE */
  415. USART_ClockInitStruct->LastBitClockPulse = LL_USART_LASTCLKPULSE_NO_OUTPUT; /* Not relevant when ClockOutput = LL_USART_CLOCK_DISABLE */
  416. }
  417. /**
  418. * @}
  419. */
  420. /**
  421. * @}
  422. */
  423. /**
  424. * @}
  425. */
  426. #endif /* USART1 || USART2 || USART3 || USART6 || UART4 || UART5 || UART7 || UART8 || UART9 || USART10 */
  427. /**
  428. * @}
  429. */
  430. #endif /* USE_FULL_LL_DRIVER */
  431. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/