stm32f4xx_ll_usart.c 18 KB

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