mbed library sources
Dependents: frdm_kl05z_gpio_test
Fork of mbed-src by
targets/cmsis/TARGET_STM/TARGET_NUCLEO_F334R8/stm32f3xx_hal_dma_ex.h@323:9e901b0a5aa1, 2014-09-13 (annotated)
- Committer:
- shaoziyang
- Date:
- Sat Sep 13 14:25:46 2014 +0000
- Revision:
- 323:9e901b0a5aa1
- Parent:
- 237:f3da66175598
test with CLOCK_SETUP = 0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 237:f3da66175598 | 1 | /** |
mbed_official | 237:f3da66175598 | 2 | ****************************************************************************** |
mbed_official | 237:f3da66175598 | 3 | * @file stm32f3xx_hal_dma_ex.h |
mbed_official | 237:f3da66175598 | 4 | * @author MCD Application Team |
mbed_official | 237:f3da66175598 | 5 | * @version V1.0.1 |
mbed_official | 237:f3da66175598 | 6 | * @date 18-June-2014 |
mbed_official | 237:f3da66175598 | 7 | * @brief Header file of DMA HAL extension module. |
mbed_official | 237:f3da66175598 | 8 | ****************************************************************************** |
mbed_official | 237:f3da66175598 | 9 | * @attention |
mbed_official | 237:f3da66175598 | 10 | * |
mbed_official | 237:f3da66175598 | 11 | * <h2><center>© COPYRIGHT(c) 2014 STMicroelectronics</center></h2> |
mbed_official | 237:f3da66175598 | 12 | * |
mbed_official | 237:f3da66175598 | 13 | * Redistribution and use in source and binary forms, with or without modification, |
mbed_official | 237:f3da66175598 | 14 | * are permitted provided that the following conditions are met: |
mbed_official | 237:f3da66175598 | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
mbed_official | 237:f3da66175598 | 16 | * this list of conditions and the following disclaimer. |
mbed_official | 237:f3da66175598 | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
mbed_official | 237:f3da66175598 | 18 | * this list of conditions and the following disclaimer in the documentation |
mbed_official | 237:f3da66175598 | 19 | * and/or other materials provided with the distribution. |
mbed_official | 237:f3da66175598 | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
mbed_official | 237:f3da66175598 | 21 | * may be used to endorse or promote products derived from this software |
mbed_official | 237:f3da66175598 | 22 | * without specific prior written permission. |
mbed_official | 237:f3da66175598 | 23 | * |
mbed_official | 237:f3da66175598 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
mbed_official | 237:f3da66175598 | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
mbed_official | 237:f3da66175598 | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
mbed_official | 237:f3da66175598 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
mbed_official | 237:f3da66175598 | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
mbed_official | 237:f3da66175598 | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
mbed_official | 237:f3da66175598 | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
mbed_official | 237:f3da66175598 | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
mbed_official | 237:f3da66175598 | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
mbed_official | 237:f3da66175598 | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
mbed_official | 237:f3da66175598 | 34 | * |
mbed_official | 237:f3da66175598 | 35 | ****************************************************************************** |
mbed_official | 237:f3da66175598 | 36 | */ |
mbed_official | 237:f3da66175598 | 37 | |
mbed_official | 237:f3da66175598 | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
mbed_official | 237:f3da66175598 | 39 | #ifndef __STM32F3xx_HAL_DMA_EX_H |
mbed_official | 237:f3da66175598 | 40 | #define __STM32F3xx_HAL_DMA_EX_H |
mbed_official | 237:f3da66175598 | 41 | |
mbed_official | 237:f3da66175598 | 42 | #ifdef __cplusplus |
mbed_official | 237:f3da66175598 | 43 | extern "C" { |
mbed_official | 237:f3da66175598 | 44 | #endif |
mbed_official | 237:f3da66175598 | 45 | |
mbed_official | 237:f3da66175598 | 46 | /* Includes ------------------------------------------------------------------*/ |
mbed_official | 237:f3da66175598 | 47 | #include "stm32f3xx_hal_def.h" |
mbed_official | 237:f3da66175598 | 48 | |
mbed_official | 237:f3da66175598 | 49 | /** @addtogroup STM32F3xx_HAL_Driver |
mbed_official | 237:f3da66175598 | 50 | * @{ |
mbed_official | 237:f3da66175598 | 51 | */ |
mbed_official | 237:f3da66175598 | 52 | |
mbed_official | 237:f3da66175598 | 53 | /** @addtogroup DMAEx |
mbed_official | 237:f3da66175598 | 54 | * @{ |
mbed_official | 237:f3da66175598 | 55 | */ |
mbed_official | 237:f3da66175598 | 56 | |
mbed_official | 237:f3da66175598 | 57 | /* Exported types ------------------------------------------------------------*/ |
mbed_official | 237:f3da66175598 | 58 | /* Exported constants --------------------------------------------------------*/ |
mbed_official | 237:f3da66175598 | 59 | /* Exported macro ------------------------------------------------------------*/ |
mbed_official | 237:f3da66175598 | 60 | /* Interrupt & Flag management */ |
mbed_official | 237:f3da66175598 | 61 | |
mbed_official | 237:f3da66175598 | 62 | /** |
mbed_official | 237:f3da66175598 | 63 | * @brief Returns the current DMA Channel transfer complete flag. |
mbed_official | 237:f3da66175598 | 64 | * @param __HANDLE__: DMA handle |
mbed_official | 237:f3da66175598 | 65 | * @retval The specified transfer complete flag index. |
mbed_official | 237:f3da66175598 | 66 | */ |
mbed_official | 237:f3da66175598 | 67 | |
mbed_official | 237:f3da66175598 | 68 | #if defined(STM32F302xC) || defined(STM32F303xC) || defined(STM32F373xC) |
mbed_official | 237:f3da66175598 | 69 | /** @defgroup STM32F302xC_STM32F303xC_STM32F373xC Product devices |
mbed_official | 237:f3da66175598 | 70 | * @{ |
mbed_official | 237:f3da66175598 | 71 | */ |
mbed_official | 237:f3da66175598 | 72 | #define __HAL_DMA_GET_TC_FLAG_INDEX(__HANDLE__) \ |
mbed_official | 237:f3da66175598 | 73 | (((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel1))? DMA_FLAG_TC1 :\ |
mbed_official | 237:f3da66175598 | 74 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel2))? DMA_FLAG_TC2 :\ |
mbed_official | 237:f3da66175598 | 75 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel3))? DMA_FLAG_TC3 :\ |
mbed_official | 237:f3da66175598 | 76 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel4))? DMA_FLAG_TC4 :\ |
mbed_official | 237:f3da66175598 | 77 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel5))? DMA_FLAG_TC5 :\ |
mbed_official | 237:f3da66175598 | 78 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel6))? DMA_FLAG_TC6 :\ |
mbed_official | 237:f3da66175598 | 79 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel7))? DMA_FLAG_TC7 :\ |
mbed_official | 237:f3da66175598 | 80 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Channel1))? DMA_FLAG_TC1 :\ |
mbed_official | 237:f3da66175598 | 81 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Channel2))? DMA_FLAG_TC2 :\ |
mbed_official | 237:f3da66175598 | 82 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Channel3))? DMA_FLAG_TC3 :\ |
mbed_official | 237:f3da66175598 | 83 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Channel4))? DMA_FLAG_TC4 :\ |
mbed_official | 237:f3da66175598 | 84 | DMA_FLAG_TC5) |
mbed_official | 237:f3da66175598 | 85 | |
mbed_official | 237:f3da66175598 | 86 | /** |
mbed_official | 237:f3da66175598 | 87 | * @brief Returns the current DMA Channel half transfer complete flag. |
mbed_official | 237:f3da66175598 | 88 | * @param __HANDLE__: DMA handle |
mbed_official | 237:f3da66175598 | 89 | * @retval The specified half transfer complete flag index. |
mbed_official | 237:f3da66175598 | 90 | */ |
mbed_official | 237:f3da66175598 | 91 | #define __HAL_DMA_GET_HT_FLAG_INDEX(__HANDLE__)\ |
mbed_official | 237:f3da66175598 | 92 | (((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel1))? DMA_FLAG_HT1 :\ |
mbed_official | 237:f3da66175598 | 93 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel2))? DMA_FLAG_HT2 :\ |
mbed_official | 237:f3da66175598 | 94 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel3))? DMA_FLAG_HT3 :\ |
mbed_official | 237:f3da66175598 | 95 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel4))? DMA_FLAG_HT4 :\ |
mbed_official | 237:f3da66175598 | 96 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel5))? DMA_FLAG_HT5 :\ |
mbed_official | 237:f3da66175598 | 97 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel6))? DMA_FLAG_HT6 :\ |
mbed_official | 237:f3da66175598 | 98 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel7))? DMA_FLAG_HT7 :\ |
mbed_official | 237:f3da66175598 | 99 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Channel1))? DMA_FLAG_HT1 :\ |
mbed_official | 237:f3da66175598 | 100 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Channel2))? DMA_FLAG_HT2 :\ |
mbed_official | 237:f3da66175598 | 101 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Channel3))? DMA_FLAG_HT3 :\ |
mbed_official | 237:f3da66175598 | 102 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Channel4))? DMA_FLAG_HT4 :\ |
mbed_official | 237:f3da66175598 | 103 | DMA_FLAG_HT5) |
mbed_official | 237:f3da66175598 | 104 | |
mbed_official | 237:f3da66175598 | 105 | /** |
mbed_official | 237:f3da66175598 | 106 | * @brief Returns the current DMA Channel transfer error flag. |
mbed_official | 237:f3da66175598 | 107 | * @param __HANDLE__: DMA handle |
mbed_official | 237:f3da66175598 | 108 | * @retval The specified transfer error flag index. |
mbed_official | 237:f3da66175598 | 109 | */ |
mbed_official | 237:f3da66175598 | 110 | #define __HAL_DMA_GET_TE_FLAG_INDEX(__HANDLE__)\ |
mbed_official | 237:f3da66175598 | 111 | (((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel1))? DMA_FLAG_TE1 :\ |
mbed_official | 237:f3da66175598 | 112 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel2))? DMA_FLAG_TE2 :\ |
mbed_official | 237:f3da66175598 | 113 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel3))? DMA_FLAG_TE3 :\ |
mbed_official | 237:f3da66175598 | 114 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel4))? DMA_FLAG_TE4 :\ |
mbed_official | 237:f3da66175598 | 115 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel5))? DMA_FLAG_TE5 :\ |
mbed_official | 237:f3da66175598 | 116 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel6))? DMA_FLAG_TE6 :\ |
mbed_official | 237:f3da66175598 | 117 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel7))? DMA_FLAG_TE7 :\ |
mbed_official | 237:f3da66175598 | 118 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Channel1))? DMA_FLAG_TE1 :\ |
mbed_official | 237:f3da66175598 | 119 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Channel2))? DMA_FLAG_TE2 :\ |
mbed_official | 237:f3da66175598 | 120 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Channel3))? DMA_FLAG_TE3 :\ |
mbed_official | 237:f3da66175598 | 121 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Channel4))? DMA_FLAG_TE4 :\ |
mbed_official | 237:f3da66175598 | 122 | DMA_FLAG_TE5) |
mbed_official | 237:f3da66175598 | 123 | |
mbed_official | 237:f3da66175598 | 124 | /** |
mbed_official | 237:f3da66175598 | 125 | * @brief Get the DMA Channel pending flags. |
mbed_official | 237:f3da66175598 | 126 | * @param __HANDLE__: DMA handle |
mbed_official | 237:f3da66175598 | 127 | * @param __FLAG__: Get the specified flag. |
mbed_official | 237:f3da66175598 | 128 | * This parameter can be any combination of the following values: |
mbed_official | 237:f3da66175598 | 129 | * @arg DMA_FLAG_TCIFx: Transfer complete flag |
mbed_official | 237:f3da66175598 | 130 | * @arg DMA_FLAG_HTIFx: Half transfer complete flag |
mbed_official | 237:f3da66175598 | 131 | * @arg DMA_FLAG_TEIFx: Transfer error flag |
mbed_official | 237:f3da66175598 | 132 | * Where x can be 0_4, 1_5, 2_6 or 3_7 to select the DMA Channel flag. |
mbed_official | 237:f3da66175598 | 133 | * @retval The state of FLAG (SET or RESET). |
mbed_official | 237:f3da66175598 | 134 | */ |
mbed_official | 237:f3da66175598 | 135 | |
mbed_official | 237:f3da66175598 | 136 | #define __HAL_DMA_GET_FLAG(__HANDLE__, __FLAG__)\ |
mbed_official | 237:f3da66175598 | 137 | (((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA1_Channel7)? (DMA2->ISR & (__FLAG__)) :\ |
mbed_official | 237:f3da66175598 | 138 | (DMA1->ISR & (__FLAG__))) |
mbed_official | 237:f3da66175598 | 139 | |
mbed_official | 237:f3da66175598 | 140 | /** |
mbed_official | 237:f3da66175598 | 141 | * @brief Clears the DMA Channel pending flags. |
mbed_official | 237:f3da66175598 | 142 | * @param __HANDLE__: DMA handle |
mbed_official | 237:f3da66175598 | 143 | * @param __FLAG__: specifies the flag to clear. |
mbed_official | 237:f3da66175598 | 144 | * This parameter can be any combination of the following values: |
mbed_official | 237:f3da66175598 | 145 | * @arg DMA_FLAG_TCIFx: Transfer complete flag |
mbed_official | 237:f3da66175598 | 146 | * @arg DMA_FLAG_HTIFx: Half transfer complete flag |
mbed_official | 237:f3da66175598 | 147 | * @arg DMA_FLAG_TEIFx: Transfer error flag |
mbed_official | 237:f3da66175598 | 148 | * Where x can be 0_4, 1_5, 2_6 or 3_7 to select the DMA Channel flag. |
mbed_official | 237:f3da66175598 | 149 | * @retval None |
mbed_official | 237:f3da66175598 | 150 | */ |
mbed_official | 237:f3da66175598 | 151 | #define __HAL_DMA_CLEAR_FLAG(__HANDLE__, __FLAG__) \ |
mbed_official | 237:f3da66175598 | 152 | (((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA1_Channel7)? (DMA2->IFCR = (__FLAG__)) :\ |
mbed_official | 237:f3da66175598 | 153 | (DMA1->IFCR = (__FLAG__))) |
mbed_official | 237:f3da66175598 | 154 | |
mbed_official | 237:f3da66175598 | 155 | /** |
mbed_official | 237:f3da66175598 | 156 | * @} |
mbed_official | 237:f3da66175598 | 157 | */ |
mbed_official | 237:f3da66175598 | 158 | |
mbed_official | 237:f3da66175598 | 159 | #else |
mbed_official | 237:f3da66175598 | 160 | |
mbed_official | 237:f3da66175598 | 161 | /** @defgroup STM32F301x8_STM32F302x8_STM32F303x8_STM32F334x8 Product devices |
mbed_official | 237:f3da66175598 | 162 | * @{ |
mbed_official | 237:f3da66175598 | 163 | */ |
mbed_official | 237:f3da66175598 | 164 | #define __HAL_DMA_GET_TC_FLAG_INDEX(__HANDLE__) \ |
mbed_official | 237:f3da66175598 | 165 | (((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel1))? DMA_FLAG_TC1 :\ |
mbed_official | 237:f3da66175598 | 166 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel2))? DMA_FLAG_TC2 :\ |
mbed_official | 237:f3da66175598 | 167 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel3))? DMA_FLAG_TC3 :\ |
mbed_official | 237:f3da66175598 | 168 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel4))? DMA_FLAG_TC4 :\ |
mbed_official | 237:f3da66175598 | 169 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel5))? DMA_FLAG_TC5 :\ |
mbed_official | 237:f3da66175598 | 170 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel6))? DMA_FLAG_TC6 :\ |
mbed_official | 237:f3da66175598 | 171 | DMA_FLAG_TC7) |
mbed_official | 237:f3da66175598 | 172 | |
mbed_official | 237:f3da66175598 | 173 | /** |
mbed_official | 237:f3da66175598 | 174 | * @brief Returns the current DMA Channel half transfer complete flag. |
mbed_official | 237:f3da66175598 | 175 | * @param __HANDLE__: DMA handle |
mbed_official | 237:f3da66175598 | 176 | * @retval The specified half transfer complete flag index. |
mbed_official | 237:f3da66175598 | 177 | */ |
mbed_official | 237:f3da66175598 | 178 | #define __HAL_DMA_GET_HT_FLAG_INDEX(__HANDLE__)\ |
mbed_official | 237:f3da66175598 | 179 | (((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel1))? DMA_FLAG_HT1 :\ |
mbed_official | 237:f3da66175598 | 180 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel2))? DMA_FLAG_HT2 :\ |
mbed_official | 237:f3da66175598 | 181 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel3))? DMA_FLAG_HT3 :\ |
mbed_official | 237:f3da66175598 | 182 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel4))? DMA_FLAG_HT4 :\ |
mbed_official | 237:f3da66175598 | 183 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel5))? DMA_FLAG_HT5 :\ |
mbed_official | 237:f3da66175598 | 184 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel6))? DMA_FLAG_HT6 :\ |
mbed_official | 237:f3da66175598 | 185 | DMA_FLAG_HT7) |
mbed_official | 237:f3da66175598 | 186 | |
mbed_official | 237:f3da66175598 | 187 | /** |
mbed_official | 237:f3da66175598 | 188 | * @brief Returns the current DMA Channel transfer error flag. |
mbed_official | 237:f3da66175598 | 189 | * @param __HANDLE__: DMA handle |
mbed_official | 237:f3da66175598 | 190 | * @retval The specified transfer error flag index. |
mbed_official | 237:f3da66175598 | 191 | */ |
mbed_official | 237:f3da66175598 | 192 | #define __HAL_DMA_GET_TE_FLAG_INDEX(__HANDLE__)\ |
mbed_official | 237:f3da66175598 | 193 | (((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel1))? DMA_FLAG_TE1 :\ |
mbed_official | 237:f3da66175598 | 194 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel2))? DMA_FLAG_TE2 :\ |
mbed_official | 237:f3da66175598 | 195 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel3))? DMA_FLAG_TE3 :\ |
mbed_official | 237:f3da66175598 | 196 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel4))? DMA_FLAG_TE4 :\ |
mbed_official | 237:f3da66175598 | 197 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel5))? DMA_FLAG_TE5 :\ |
mbed_official | 237:f3da66175598 | 198 | ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel6))? DMA_FLAG_TE6 :\ |
mbed_official | 237:f3da66175598 | 199 | DMA_FLAG_TE7) |
mbed_official | 237:f3da66175598 | 200 | |
mbed_official | 237:f3da66175598 | 201 | /** |
mbed_official | 237:f3da66175598 | 202 | * @brief Get the DMA Channel pending flags. |
mbed_official | 237:f3da66175598 | 203 | * @param __HANDLE__: DMA handle |
mbed_official | 237:f3da66175598 | 204 | * @param __FLAG__: Get the specified flag. |
mbed_official | 237:f3da66175598 | 205 | * This parameter can be any combination of the following values: |
mbed_official | 237:f3da66175598 | 206 | * @arg DMA_FLAG_TCIFx: Transfer complete flag |
mbed_official | 237:f3da66175598 | 207 | * @arg DMA_FLAG_HTIFx: Half transfer complete flag |
mbed_official | 237:f3da66175598 | 208 | * @arg DMA_FLAG_TEIFx: Transfer error flag |
mbed_official | 237:f3da66175598 | 209 | * Where x can be 0_4, 1_5, 2_6 or 3_7 to select the DMA Channel flag. |
mbed_official | 237:f3da66175598 | 210 | * @retval The state of FLAG (SET or RESET). |
mbed_official | 237:f3da66175598 | 211 | */ |
mbed_official | 237:f3da66175598 | 212 | |
mbed_official | 237:f3da66175598 | 213 | #define __HAL_DMA_GET_FLAG(__HANDLE__, __FLAG__) (DMA1->ISR & (__FLAG__)) |
mbed_official | 237:f3da66175598 | 214 | |
mbed_official | 237:f3da66175598 | 215 | /** |
mbed_official | 237:f3da66175598 | 216 | * @brief Clears the DMA Channel pending flags. |
mbed_official | 237:f3da66175598 | 217 | * @param __HANDLE__: DMA handle |
mbed_official | 237:f3da66175598 | 218 | * @param __FLAG__: specifies the flag to clear. |
mbed_official | 237:f3da66175598 | 219 | * This parameter can be any combination of the following values: |
mbed_official | 237:f3da66175598 | 220 | * @arg DMA_FLAG_TCIFx: Transfer complete flag |
mbed_official | 237:f3da66175598 | 221 | * @arg DMA_FLAG_HTIFx: Half transfer complete flag |
mbed_official | 237:f3da66175598 | 222 | * @arg DMA_FLAG_TEIFx: Transfer error flag |
mbed_official | 237:f3da66175598 | 223 | * Where x can be 0_4, 1_5, 2_6 or 3_7 to select the DMA Channel flag. |
mbed_official | 237:f3da66175598 | 224 | * @retval None |
mbed_official | 237:f3da66175598 | 225 | */ |
mbed_official | 237:f3da66175598 | 226 | #define __HAL_DMA_CLEAR_FLAG(__HANDLE__, __FLAG__) (DMA1->IFCR |= (__FLAG__)) |
mbed_official | 237:f3da66175598 | 227 | |
mbed_official | 237:f3da66175598 | 228 | /** |
mbed_official | 237:f3da66175598 | 229 | * @} |
mbed_official | 237:f3da66175598 | 230 | */ |
mbed_official | 237:f3da66175598 | 231 | |
mbed_official | 237:f3da66175598 | 232 | #endif |
mbed_official | 237:f3da66175598 | 233 | |
mbed_official | 237:f3da66175598 | 234 | /** |
mbed_official | 237:f3da66175598 | 235 | * @} |
mbed_official | 237:f3da66175598 | 236 | */ |
mbed_official | 237:f3da66175598 | 237 | |
mbed_official | 237:f3da66175598 | 238 | /** |
mbed_official | 237:f3da66175598 | 239 | * @} |
mbed_official | 237:f3da66175598 | 240 | */ |
mbed_official | 237:f3da66175598 | 241 | |
mbed_official | 237:f3da66175598 | 242 | #ifdef __cplusplus |
mbed_official | 237:f3da66175598 | 243 | } |
mbed_official | 237:f3da66175598 | 244 | #endif |
mbed_official | 237:f3da66175598 | 245 | |
mbed_official | 237:f3da66175598 | 246 | #endif /* __STM32F3xx_HAL_DMA_H */ |
mbed_official | 237:f3da66175598 | 247 | |
mbed_official | 237:f3da66175598 | 248 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |