py32f0xx_hal_dma.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502
  1. /**
  2. ******************************************************************************
  3. * @file py32f0xx_hal_dma.h
  4. * @author MCU Application Team
  5. * @brief Header file of DMA HAL module.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright (c) 2023 Puya Semiconductor Co.
  10. * All rights reserved.</center></h2>
  11. *
  12. * This software component is licensed by Puya 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. * @attention
  19. *
  20. * <h2><center>&copy; Copyright (c) 2016 STMicroelectronics.
  21. * All rights reserved.</center></h2>
  22. *
  23. * This software component is licensed by ST under BSD 3-Clause license,
  24. * the "License"; You may not use this file except in compliance with the
  25. * License. You may obtain a copy of the License at:
  26. * opensource.org/licenses/BSD-3-Clause
  27. *
  28. ******************************************************************************
  29. */
  30. /* Define to prevent recursive inclusion -------------------------------------*/
  31. #ifndef __PY32F0xx_HAL_DMA_H
  32. #define __PY32F0xx_HAL_DMA_H
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36. /* Includes ------------------------------------------------------------------*/
  37. #include "py32f0xx_hal_def.h"
  38. /** @addtogroup PY32F0xx_HAL_Driver
  39. * @{
  40. */
  41. /** @addtogroup DMA
  42. * @{
  43. */
  44. /* Exported types ------------------------------------------------------------*/
  45. /** @defgroup DMA_Exported_Types DMA Exported Types
  46. * @{
  47. */
  48. /**
  49. * @brief DMA Configuration Structure definition
  50. */
  51. typedef struct
  52. {
  53. uint32_t Direction; /*!< Specifies if the data will be transferred from memory to peripheral,
  54. from memory to memory or from peripheral to memory.
  55. This parameter can be a value of @ref DMA_Data_transfer_direction */
  56. uint32_t PeriphInc; /*!< Specifies whether the Peripheral address register should be incremented or not.
  57. This parameter can be a value of @ref DMA_Peripheral_incremented_mode */
  58. uint32_t MemInc; /*!< Specifies whether the memory address register should be incremented or not.
  59. This parameter can be a value of @ref DMA_Memory_incremented_mode */
  60. uint32_t PeriphDataAlignment; /*!< Specifies the Peripheral data width.
  61. This parameter can be a value of @ref DMA_Peripheral_data_size */
  62. uint32_t MemDataAlignment; /*!< Specifies the Memory data width.
  63. This parameter can be a value of @ref DMA_Memory_data_size */
  64. uint32_t Mode; /*!< Specifies the operation mode of the DMAy Channelx.
  65. This parameter can be a value of @ref DMA_mode
  66. @note The circular buffer mode cannot be used if the memory-to-memory
  67. data transfer is configured on the selected Channel */
  68. uint32_t Priority; /*!< Specifies the software priority for the DMAy Channelx.
  69. This parameter can be a value of @ref DMA_Priority_level */
  70. } DMA_InitTypeDef;
  71. /**
  72. * @brief HAL DMA State structures definition
  73. */
  74. typedef enum
  75. {
  76. HAL_DMA_STATE_RESET = 0x00U, /*!< DMA not yet initialized or disabled */
  77. HAL_DMA_STATE_READY = 0x01U, /*!< DMA initialized and ready for use */
  78. HAL_DMA_STATE_BUSY = 0x02U, /*!< DMA process is ongoing */
  79. HAL_DMA_STATE_TIMEOUT = 0x03U /*!< DMA timeout state */
  80. } HAL_DMA_StateTypeDef;
  81. /**
  82. * @brief HAL DMA Error Code structure definition
  83. */
  84. typedef enum
  85. {
  86. HAL_DMA_FULL_TRANSFER = 0x00U, /*!< Full transfer */
  87. HAL_DMA_HALF_TRANSFER = 0x01U /*!< Half Transfer */
  88. } HAL_DMA_LevelCompleteTypeDef;
  89. /**
  90. * @brief HAL DMA Callback ID structure definition
  91. */
  92. typedef enum
  93. {
  94. HAL_DMA_XFER_CPLT_CB_ID = 0x00U, /*!< Full transfer */
  95. HAL_DMA_XFER_HALFCPLT_CB_ID = 0x01U, /*!< Half transfer */
  96. HAL_DMA_XFER_ERROR_CB_ID = 0x02U, /*!< Error */
  97. HAL_DMA_XFER_ABORT_CB_ID = 0x03U, /*!< Abort */
  98. HAL_DMA_XFER_ALL_CB_ID = 0x04U /*!< All */
  99. } HAL_DMA_CallbackIDTypeDef;
  100. /**
  101. * @brief DMA handle Structure definition
  102. */
  103. typedef struct __DMA_HandleTypeDef
  104. {
  105. DMA_Channel_TypeDef *Instance; /*!< Register base address */
  106. DMA_InitTypeDef Init; /*!< DMA communication parameters */
  107. HAL_LockTypeDef Lock; /*!< DMA locking object */
  108. __IO HAL_DMA_StateTypeDef State; /*!< DMA transfer state */
  109. void *Parent; /*!< Parent object state */
  110. void (* XferCpltCallback)( struct __DMA_HandleTypeDef * hdma); /*!< DMA transfer complete callback */
  111. void (* XferHalfCpltCallback)( struct __DMA_HandleTypeDef * hdma); /*!< DMA Half transfer complete callback */
  112. void (* XferErrorCallback)( struct __DMA_HandleTypeDef * hdma); /*!< DMA transfer error callback */
  113. void (* XferAbortCallback)( struct __DMA_HandleTypeDef * hdma); /*!< DMA transfer abort callback */
  114. __IO uint32_t ErrorCode; /*!< DMA Error code */
  115. DMA_TypeDef *DmaBaseAddress; /*!< DMA Channel Base Address */
  116. uint32_t ChannelIndex; /*!< DMA Channel Index */
  117. } DMA_HandleTypeDef;
  118. /**
  119. * @}
  120. */
  121. /* Exported constants --------------------------------------------------------*/
  122. /** @defgroup DMA_Exported_Constants DMA Exported Constants
  123. * @{
  124. */
  125. /** @defgroup DMA_Error_Code DMA Error Code
  126. * @{
  127. */
  128. #define HAL_DMA_ERROR_NONE (0x00000000U) /*!< No error */
  129. #define HAL_DMA_ERROR_TE (0x00000001U) /*!< Transfer error */
  130. #define HAL_DMA_ERROR_NO_XFER (0x00000004U) /*!< no ongoin transfer */
  131. #define HAL_DMA_ERROR_TIMEOUT (0x00000020U) /*!< Timeout error */
  132. #define HAL_DMA_ERROR_NOT_SUPPORTED (0x00000100U) /*!< Not supported mode */
  133. /**
  134. * @}
  135. */
  136. /** @defgroup DMA_Data_transfer_direction DMA Data transfer direction
  137. * @{
  138. */
  139. #define DMA_PERIPH_TO_MEMORY (0x00000000U) /*!< Peripheral to memory direction */
  140. #define DMA_MEMORY_TO_PERIPH ((uint32_t)DMA_CCR_DIR) /*!< Memory to peripheral direction */
  141. #define DMA_MEMORY_TO_MEMORY ((uint32_t)(DMA_CCR_MEM2MEM)) /*!< Memory to memory direction */
  142. /**
  143. * @}
  144. */
  145. /** @defgroup DMA_Peripheral_incremented_mode DMA Peripheral incremented mode
  146. * @{
  147. */
  148. #define DMA_PINC_ENABLE ((uint32_t)DMA_CCR_PINC) /*!< Peripheral increment mode Enable */
  149. #define DMA_PINC_DISABLE (0x00000000U) /*!< Peripheral increment mode Disable */
  150. /**
  151. * @}
  152. */
  153. /** @defgroup DMA_Memory_incremented_mode DMA Memory incremented mode
  154. * @{
  155. */
  156. #define DMA_MINC_ENABLE ((uint32_t)DMA_CCR_MINC) /*!< Memory increment mode Enable */
  157. #define DMA_MINC_DISABLE (0x00000000U) /*!< Memory increment mode Disable */
  158. /**
  159. * @}
  160. */
  161. /** @defgroup DMA_Peripheral_data_size DMA Peripheral data size
  162. * @{
  163. */
  164. #define DMA_PDATAALIGN_BYTE (0x00000000U) /*!< Peripheral data alignment : Byte */
  165. #define DMA_PDATAALIGN_HALFWORD ((uint32_t)DMA_CCR_PSIZE_0) /*!< Peripheral data alignment : HalfWord */
  166. #define DMA_PDATAALIGN_WORD ((uint32_t)DMA_CCR_PSIZE_1) /*!< Peripheral data alignment : Word */
  167. /**
  168. * @}
  169. */
  170. /** @defgroup DMA_Memory_data_size DMA Memory data size
  171. * @{
  172. */
  173. #define DMA_MDATAALIGN_BYTE (0x00000000U) /*!< Memory data alignment : Byte */
  174. #define DMA_MDATAALIGN_HALFWORD ((uint32_t)DMA_CCR_MSIZE_0) /*!< Memory data alignment : HalfWord */
  175. #define DMA_MDATAALIGN_WORD ((uint32_t)DMA_CCR_MSIZE_1) /*!< Memory data alignment : Word */
  176. /**
  177. * @}
  178. */
  179. /** @defgroup DMA_mode DMA mode
  180. * @{
  181. */
  182. #define DMA_NORMAL (0x00000000U) /*!< Normal Mode */
  183. #define DMA_CIRCULAR ((uint32_t)DMA_CCR_CIRC) /*!< Circular Mode */
  184. /**
  185. * @}
  186. */
  187. /** @defgroup DMA_Priority_level DMA Priority level
  188. * @{
  189. */
  190. #define DMA_PRIORITY_LOW (0x00000000U) /*!< Priority level : Low */
  191. #define DMA_PRIORITY_MEDIUM ((uint32_t)DMA_CCR_PL_0) /*!< Priority level : Medium */
  192. #define DMA_PRIORITY_HIGH ((uint32_t)DMA_CCR_PL_1) /*!< Priority level : High */
  193. #define DMA_PRIORITY_VERY_HIGH ((uint32_t)DMA_CCR_PL) /*!< Priority level : Very_High */
  194. /**
  195. * @}
  196. */
  197. /** @defgroup DMA_interrupt_enable_definitions DMA interrupt enable definitions
  198. * @{
  199. */
  200. #define DMA_IT_TC ((uint32_t)DMA_CCR_TCIE)
  201. #define DMA_IT_HT ((uint32_t)DMA_CCR_HTIE)
  202. #define DMA_IT_TE ((uint32_t)DMA_CCR_TEIE)
  203. /**
  204. * @}
  205. */
  206. /** @defgroup DMA_flag_definitions DMA flag definitions
  207. * @{
  208. */
  209. #define DMA_FLAG_GL1 (0x00000001U) /*!< Channel 1 global interrupt flag */
  210. #define DMA_FLAG_TC1 (0x00000002U) /*!< Channel 1 transfer complete flag */
  211. #define DMA_FLAG_HT1 (0x00000004U) /*!< Channel 1 half transfer flag */
  212. #define DMA_FLAG_TE1 (0x00000008U) /*!< Channel 1 transfer error flag */
  213. #define DMA_FLAG_GL2 (0x00000010U) /*!< Channel 2 global interrupt flag */
  214. #define DMA_FLAG_TC2 (0x00000020U) /*!< Channel 2 transfer complete flag */
  215. #define DMA_FLAG_HT2 (0x00000040U) /*!< Channel 2 half transfer flag */
  216. #define DMA_FLAG_TE2 (0x00000080U) /*!< Channel 2 transfer error flag */
  217. #define DMA_FLAG_GL3 (0x00000100U) /*!< Channel 3 global interrupt flag */
  218. #define DMA_FLAG_TC3 (0x00000200U) /*!< Channel 3 transfer complete flag */
  219. #define DMA_FLAG_HT3 (0x00000400U) /*!< Channel 3 half transfer flag */
  220. #define DMA_FLAG_TE3 (0x00000800U) /*!< Channel 3 transfer error flag */
  221. /**
  222. * @}
  223. */
  224. /** @defgroup DMA_Channel_map DMA Channel map
  225. * @{
  226. */
  227. #define DMA_CHANNEL_MAP_ADC 0x00000000U
  228. #define DMA_CHANNEL_MAP_SPI1_TX 0x00000001U
  229. #define DMA_CHANNEL_MAP_SPI1_RX 0x00000002U
  230. #define DMA_CHANNEL_MAP_SPI2_TX 0x00000003U
  231. #define DMA_CHANNEL_MAP_SPI2_RX 0x00000004U
  232. #define DMA_CHANNEL_MAP_USART1_TX 0x00000005U
  233. #define DMA_CHANNEL_MAP_USART1_RX 0x00000006U
  234. #define DMA_CHANNEL_MAP_USART2_TX 0x00000007U
  235. #define DMA_CHANNEL_MAP_USART2_RX 0x00000008U
  236. #define DMA_CHANNEL_MAP_I2C_TX 0x00000009U
  237. #define DMA_CHANNEL_MAP_I2C_RX 0x0000000AU
  238. #define DMA_CHANNEL_MAP_TIM1_CH1 0x0000000BU
  239. #define DMA_CHANNEL_MAP_TIM1_CH2 0x0000000CU
  240. #define DMA_CHANNEL_MAP_TIM1_CH3 0x0000000DU
  241. #define DMA_CHANNEL_MAP_TIM1_CH4 0x0000000EU
  242. #define DMA_CHANNEL_MAP_TIM1_COM 0x0000000FU
  243. #define DMA_CHANNEL_MAP_TIM1_UP 0x00000010U
  244. #define DMA_CHANNEL_MAP_TIM1_TRIG 0x00000011U
  245. #define DMA_CHANNEL_MAP_TIM3_CH1 0x00000012U
  246. #define DMA_CHANNEL_MAP_TIM3_CH3 0x00000013U
  247. #define DMA_CHANNEL_MAP_TIM3_CH4 0x00000014U
  248. #define DMA_CHANNEL_MAP_TIM3_TRIG 0x00000015U
  249. #define DMA_CHANNEL_MAP_TIM3_UP 0x00000016U
  250. #define DMA_CHANNEL_MAP_TIM16_CH1 0x00000018U
  251. #define DMA_CHANNEL_MAP_TIM16_UP 0x00000019U
  252. #define DMA_CHANNEL_MAP_TIM17_CH1 0x0000001AU
  253. #define DMA_CHANNEL_MAP_TIM17_UP 0x0000001BU
  254. #define DMA_CHANNEL_MAP_END 0x0000001CU
  255. /**
  256. * @}
  257. */
  258. /**
  259. * @}
  260. */
  261. /* Exported macro ------------------------------------------------------------*/
  262. /** @defgroup DMA_Exported_Macros DMA Exported Macros
  263. * @{
  264. */
  265. /** @brief Reset DMA handle state
  266. * @param __HANDLE__ DMA handle.
  267. * @retval None
  268. */
  269. #define __HAL_DMA_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_DMA_STATE_RESET)
  270. /**
  271. * @brief Enable the specified DMA Channel.
  272. * @param __HANDLE__ DMA handle
  273. * @retval None
  274. */
  275. #define __HAL_DMA_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CCR |= DMA_CCR_EN)
  276. /**
  277. * @brief Disable the specified DMA Channel.
  278. * @param __HANDLE__ DMA handle
  279. * @retval None
  280. */
  281. #define __HAL_DMA_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CCR &= ~DMA_CCR_EN)
  282. /* Interrupt & Flag management */
  283. /**
  284. * @brief Enables the specified DMA Channel interrupts.
  285. * @param __HANDLE__ DMA handle
  286. * @param __INTERRUPT__ specifies the DMA interrupt sources to be enabled or disabled.
  287. * This parameter can be any combination of the following values:
  288. * @arg DMA_IT_TC: Transfer complete interrupt mask
  289. * @arg DMA_IT_HT: Half transfer complete interrupt mask
  290. * @arg DMA_IT_TE: Transfer error interrupt mask
  291. * @retval None
  292. */
  293. #define __HAL_DMA_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CCR |= (__INTERRUPT__))
  294. /**
  295. * @brief Disables the specified DMA Channel interrupts.
  296. * @param __HANDLE__ DMA handle
  297. * @param __INTERRUPT__ specifies the DMA interrupt sources to be enabled or disabled.
  298. * This parameter can be any combination of the following values:
  299. * @arg DMA_IT_TC: Transfer complete interrupt mask
  300. * @arg DMA_IT_HT: Half transfer complete interrupt mask
  301. * @arg DMA_IT_TE: Transfer error interrupt mask
  302. * @retval None
  303. */
  304. #define __HAL_DMA_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CCR &= ~(__INTERRUPT__))
  305. /**
  306. * @brief Checks whether the specified DMA Channel interrupt is enabled or disabled.
  307. * @param __HANDLE__ DMA handle
  308. * @param __INTERRUPT__ specifies the DMA interrupt source to check.
  309. * This parameter can be one of the following values:
  310. * @arg DMA_IT_TC: Transfer complete interrupt mask
  311. * @arg DMA_IT_HT: Half transfer complete interrupt mask
  312. * @arg DMA_IT_TE: Transfer error interrupt mask
  313. * @retval The state of DMA_IT (SET or RESET).
  314. */
  315. #define __HAL_DMA_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->CCR & (__INTERRUPT__)))
  316. /**
  317. * @brief Returns the number of remaining data units in the current DMAy Channelx transfer.
  318. * @param __HANDLE__ DMA handle
  319. *
  320. * @retval The number of remaining data units in the current DMA Channel transfer.
  321. */
  322. #define __HAL_DMA_GET_COUNTER(__HANDLE__) ((__HANDLE__)->Instance->CNDTR)
  323. /**
  324. * @}
  325. */
  326. /* Include DMA HAL Extension module */
  327. #include "py32f0xx_hal_dma_ex.h"
  328. /* Exported functions --------------------------------------------------------*/
  329. /** @addtogroup DMA_Exported_Functions
  330. * @{
  331. */
  332. /** @addtogroup DMA_Exported_Functions_Group1
  333. * @{
  334. */
  335. /* Initialization and de-initialization functions *****************************/
  336. HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma);
  337. HAL_StatusTypeDef HAL_DMA_DeInit (DMA_HandleTypeDef *hdma);
  338. /**
  339. * @}
  340. */
  341. /** @addtogroup DMA_Exported_Functions_Group2
  342. * @{
  343. */
  344. /* Input and Output operation functions *****************************************************/
  345. HAL_StatusTypeDef HAL_DMA_Start (DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength);
  346. HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength);
  347. HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma);
  348. HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma);
  349. HAL_StatusTypeDef HAL_DMA_PollForTransfer(DMA_HandleTypeDef *hdma, uint32_t CompleteLevel, uint32_t Timeout);
  350. void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma);
  351. HAL_StatusTypeDef HAL_DMA_RegisterCallback(DMA_HandleTypeDef *hdma, HAL_DMA_CallbackIDTypeDef CallbackID, void (* pCallback)( DMA_HandleTypeDef * _hdma));
  352. HAL_StatusTypeDef HAL_DMA_UnRegisterCallback(DMA_HandleTypeDef *hdma, HAL_DMA_CallbackIDTypeDef CallbackID);
  353. void HAL_DMA_ChannelMap(DMA_HandleTypeDef *hdma, uint32_t MapReqNum);
  354. /**
  355. * @}
  356. */
  357. /** @addtogroup DMA_Exported_Functions_Group3
  358. * @{
  359. */
  360. /* Peripheral State and Error functions ***************************************/
  361. HAL_DMA_StateTypeDef HAL_DMA_GetState(DMA_HandleTypeDef *hdma);
  362. uint32_t HAL_DMA_GetError(DMA_HandleTypeDef *hdma);
  363. /**
  364. * @}
  365. */
  366. /**
  367. * @}
  368. */
  369. /** @addtogroup DMA_Private_Macros DMA Private Macros
  370. * @{
  371. */
  372. #define IS_DMA_DIRECTION(DIRECTION) (((DIRECTION) == DMA_PERIPH_TO_MEMORY ) || \
  373. ((DIRECTION) == DMA_MEMORY_TO_PERIPH) || \
  374. ((DIRECTION) == DMA_MEMORY_TO_MEMORY))
  375. #define IS_DMA_PERIPHERAL_INC_STATE(STATE) (((STATE) == DMA_PINC_ENABLE) || \
  376. ((STATE) == DMA_PINC_DISABLE))
  377. #define IS_DMA_MEMORY_INC_STATE(STATE) (((STATE) == DMA_MINC_ENABLE) || \
  378. ((STATE) == DMA_MINC_DISABLE))
  379. #define IS_DMA_PERIPHERAL_DATA_SIZE(SIZE) (((SIZE) == DMA_PDATAALIGN_BYTE) || \
  380. ((SIZE) == DMA_PDATAALIGN_HALFWORD) || \
  381. ((SIZE) == DMA_PDATAALIGN_WORD))
  382. #define IS_DMA_MEMORY_DATA_SIZE(SIZE) (((SIZE) == DMA_MDATAALIGN_BYTE) || \
  383. ((SIZE) == DMA_MDATAALIGN_HALFWORD) || \
  384. ((SIZE) == DMA_MDATAALIGN_WORD ))
  385. #define IS_DMA_MODE(MODE) (((MODE) == DMA_NORMAL ) || \
  386. ((MODE) == DMA_CIRCULAR))
  387. #define IS_DMA_PRIORITY(PRIORITY) (((PRIORITY) == DMA_PRIORITY_LOW ) || \
  388. ((PRIORITY) == DMA_PRIORITY_MEDIUM) || \
  389. ((PRIORITY) == DMA_PRIORITY_HIGH) || \
  390. ((PRIORITY) == DMA_PRIORITY_VERY_HIGH))
  391. #define IS_DMA_BUFFER_SIZE(SIZE) (((SIZE) >= 0x1U) && ((SIZE) < 0x10000U))
  392. #define IS_DMA_MAP_VALUE(VALUE) (VALUE < DMA_CHANNEL_MAP_END)
  393. /**
  394. * @}
  395. */
  396. /**
  397. * @}
  398. */
  399. /**
  400. * @}
  401. */
  402. #ifdef __cplusplus
  403. }
  404. #endif
  405. #endif /* __PY32F0xx_HAL_DMA_H */
  406. /************************ (C) COPYRIGHT Puya *****END OF FILE****/