/hal_stm32-3.5.0/stm32cube/stm32h7xx/drivers/src/ |
D | stm32h7xx_hal_dma.c | 175 static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32… 176 static uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma); 177 static HAL_StatusTypeDef DMA_CheckFifoParam(DMA_HandleTypeDef *hdma); 178 static void DMA_CalcDMAMUXChannelBaseAndMask(DMA_HandleTypeDef *hdma); 179 static void DMA_CalcDMAMUXRequestGenBaseAndMask(DMA_HandleTypeDef *hdma); 216 HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma) in HAL_DMA_Init() argument 224 if(hdma == NULL) in HAL_DMA_Init() 230 assert_param(IS_DMA_ALL_INSTANCE(hdma->Instance)); in HAL_DMA_Init() 231 assert_param(IS_DMA_DIRECTION(hdma->Init.Direction)); in HAL_DMA_Init() 232 assert_param(IS_DMA_PERIPHERAL_INC_STATE(hdma->Init.PeriphInc)); in HAL_DMA_Init() [all …]
|
D | stm32h7xx_hal_dma_ex.c | 73 static void DMA_MultiBufferSetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddr… 120 HAL_StatusTypeDef HAL_DMAEx_MultiBufferStart(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t… in HAL_DMAEx_MultiBufferStart() argument 127 assert_param(IS_DMA_ALL_INSTANCE(hdma->Instance)); in HAL_DMAEx_MultiBufferStart() 130 if (hdma->Init.Direction == DMA_MEMORY_TO_MEMORY) in HAL_DMAEx_MultiBufferStart() 132 hdma->ErrorCode = HAL_DMA_ERROR_NOT_SUPPORTED; in HAL_DMAEx_MultiBufferStart() 138 __HAL_LOCK(hdma); in HAL_DMAEx_MultiBufferStart() 140 if(HAL_DMA_STATE_READY == hdma->State) in HAL_DMAEx_MultiBufferStart() 143 hdma->State = HAL_DMA_STATE_BUSY; in HAL_DMAEx_MultiBufferStart() 146 hdma->ErrorCode = HAL_DMA_ERROR_NONE; in HAL_DMAEx_MultiBufferStart() 148 if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */ in HAL_DMAEx_MultiBufferStart() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32mp1xx/drivers/src/ |
D | stm32mp1xx_hal_dma.c | 133 static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32… 134 static uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma); 135 static HAL_StatusTypeDef DMA_CheckFifoParam(DMA_HandleTypeDef *hdma); 136 static void DMA_CalcDMAMUXChannelBaseAndMask(DMA_HandleTypeDef *hdma); 137 static void DMA_CalcDMAMUXRequestGenBaseAndMask(DMA_HandleTypeDef *hdma); 174 HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma) in HAL_DMA_Init() argument 181 if (hdma == NULL) in HAL_DMA_Init() 187 assert_param(IS_DMA_STREAM_ALL_INSTANCE(hdma->Instance)); in HAL_DMA_Init() 188 assert_param(IS_DMA_DIRECTION(hdma->Init.Direction)); in HAL_DMA_Init() 189 assert_param(IS_DMA_PERIPHERAL_INC_STATE(hdma->Init.PeriphInc)); in HAL_DMA_Init() [all …]
|
D | stm32mp1xx_hal_dma_ex.c | 75 static void DMA_MultiBufferSetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddr… 122 HAL_StatusTypeDef HAL_DMAEx_MultiBufferStart(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t… in HAL_DMAEx_MultiBufferStart() argument 129 assert_param(IS_DMA_STREAM_ALL_INSTANCE(hdma->Instance)); in HAL_DMAEx_MultiBufferStart() 132 if (hdma->Init.Direction == DMA_MEMORY_TO_MEMORY) in HAL_DMAEx_MultiBufferStart() 134 hdma->ErrorCode = HAL_DMA_ERROR_NOT_SUPPORTED; in HAL_DMAEx_MultiBufferStart() 140 __HAL_LOCK(hdma); in HAL_DMAEx_MultiBufferStart() 142 if (HAL_DMA_STATE_READY == hdma->State) in HAL_DMAEx_MultiBufferStart() 145 hdma->State = HAL_DMA_STATE_BUSY; in HAL_DMAEx_MultiBufferStart() 148 hdma->ErrorCode = HAL_DMA_ERROR_NONE; in HAL_DMAEx_MultiBufferStart() 151 ((DMA_Stream_TypeDef *)hdma->Instance)->CR |= (uint32_t)DMA_SxCR_DBM; in HAL_DMAEx_MultiBufferStart() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32g0xx/drivers/src/ |
D | stm32g0xx_hal_dma.c | 112 static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32… 113 static void DMA_CalcDMAMUXChannelBaseAndMask(DMA_HandleTypeDef *hdma); 114 static void DMA_CalcDMAMUXRequestGenBaseAndMask(DMA_HandleTypeDef *hdma); 152 HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma) in HAL_DMA_Init() argument 155 if (hdma == NULL) in HAL_DMA_Init() 161 assert_param(IS_DMA_ALL_INSTANCE(hdma->Instance)); in HAL_DMA_Init() 162 assert_param(IS_DMA_DIRECTION(hdma->Init.Direction)); in HAL_DMA_Init() 163 assert_param(IS_DMA_PERIPHERAL_INC_STATE(hdma->Init.PeriphInc)); in HAL_DMA_Init() 164 assert_param(IS_DMA_MEMORY_INC_STATE(hdma->Init.MemInc)); in HAL_DMA_Init() 165 assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment)); in HAL_DMA_Init() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32l5xx/drivers/src/ |
D | stm32l5xx_hal_dma.c | 112 static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32… 113 static void DMA_CalcDMAMUXChannelBaseAndMask(DMA_HandleTypeDef *hdma); 114 static void DMA_CalcDMAMUXRequestGenBaseAndMask(DMA_HandleTypeDef *hdma); 151 HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma) in HAL_DMA_Init() argument 156 if(hdma == NULL) in HAL_DMA_Init() 162 assert_param(IS_DMA_ALL_INSTANCE(hdma->Instance)); in HAL_DMA_Init() 163 assert_param(IS_DMA_DIRECTION(hdma->Init.Direction)); in HAL_DMA_Init() 164 assert_param(IS_DMA_PERIPHERAL_INC_STATE(hdma->Init.PeriphInc)); in HAL_DMA_Init() 165 assert_param(IS_DMA_MEMORY_INC_STATE(hdma->Init.MemInc)); in HAL_DMA_Init() 166 assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment)); in HAL_DMA_Init() [all …]
|
D | stm32l5xx_hal_dma_ex.c | 73 static void DMA_MultiBufferSetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddr… 116 HAL_StatusTypeDef HAL_DMAEx_MultiBufferStart(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t… in HAL_DMAEx_MultiBufferStart() argument 124 if (hdma->Init.Direction == DMA_MEMORY_TO_MEMORY) in HAL_DMAEx_MultiBufferStart() 126 hdma->ErrorCode = HAL_DMA_ERROR_NOT_SUPPORTED; in HAL_DMAEx_MultiBufferStart() 132 __HAL_LOCK(hdma); in HAL_DMAEx_MultiBufferStart() 134 if(hdma->State == HAL_DMA_STATE_READY) in HAL_DMAEx_MultiBufferStart() 137 hdma->State = HAL_DMA_STATE_BUSY; in HAL_DMAEx_MultiBufferStart() 140 hdma->ErrorCode = HAL_DMA_ERROR_NONE; in HAL_DMAEx_MultiBufferStart() 143 hdma->Instance->CCR |= (uint32_t) (DMA_CCR_DBM | DMA_CCR_CIRC); in HAL_DMAEx_MultiBufferStart() 146 hdma->Instance->CM1AR = SecondMemAddress; in HAL_DMAEx_MultiBufferStart() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32wbxx/drivers/src/ |
D | stm32wbxx_hal_dma.c | 111 static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32… 112 static void DMA_CalcDMAMUXChannelBaseAndMask(DMA_HandleTypeDef *hdma); 113 static void DMA_CalcDMAMUXRequestGenBaseAndMask(DMA_HandleTypeDef *hdma); 151 HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma) in HAL_DMA_Init() argument 156 if (hdma == NULL) in HAL_DMA_Init() 162 assert_param(IS_DMA_ALL_INSTANCE(hdma->Instance)); in HAL_DMA_Init() 163 assert_param(IS_DMA_DIRECTION(hdma->Init.Direction)); in HAL_DMA_Init() 164 assert_param(IS_DMA_PERIPHERAL_INC_STATE(hdma->Init.PeriphInc)); in HAL_DMA_Init() 165 assert_param(IS_DMA_MEMORY_INC_STATE(hdma->Init.MemInc)); in HAL_DMA_Init() 166 assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment)); in HAL_DMA_Init() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32l4xx/drivers/src/ |
D | stm32l4xx_hal_dma.c | 112 static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32… 114 static void DMA_CalcDMAMUXChannelBaseAndMask(DMA_HandleTypeDef *hdma); 115 static void DMA_CalcDMAMUXRequestGenBaseAndMask(DMA_HandleTypeDef *hdma); 154 HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma) in HAL_DMA_Init() argument 159 if(hdma == NULL) in HAL_DMA_Init() 165 assert_param(IS_DMA_ALL_INSTANCE(hdma->Instance)); in HAL_DMA_Init() 166 assert_param(IS_DMA_DIRECTION(hdma->Init.Direction)); in HAL_DMA_Init() 167 assert_param(IS_DMA_PERIPHERAL_INC_STATE(hdma->Init.PeriphInc)); in HAL_DMA_Init() 168 assert_param(IS_DMA_MEMORY_INC_STATE(hdma->Init.MemInc)); in HAL_DMA_Init() 169 assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment)); in HAL_DMA_Init() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32c0xx/drivers/src/ |
D | stm32c0xx_hal_dma.c | 111 static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32… 112 static void DMA_CalcDMAMUXChannelBaseAndMask(DMA_HandleTypeDef *hdma); 113 static void DMA_CalcDMAMUXRequestGenBaseAndMask(DMA_HandleTypeDef *hdma); 151 HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma) in HAL_DMA_Init() argument 154 if (hdma == NULL) in HAL_DMA_Init() 160 assert_param(IS_DMA_ALL_INSTANCE(hdma->Instance)); in HAL_DMA_Init() 161 assert_param(IS_DMA_DIRECTION(hdma->Init.Direction)); in HAL_DMA_Init() 162 assert_param(IS_DMA_PERIPHERAL_INC_STATE(hdma->Init.PeriphInc)); in HAL_DMA_Init() 163 assert_param(IS_DMA_MEMORY_INC_STATE(hdma->Init.MemInc)); in HAL_DMA_Init() 164 assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment)); in HAL_DMA_Init() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32g4xx/drivers/src/ |
D | stm32g4xx_hal_dma.c | 111 static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32… 113 static void DMA_CalcDMAMUXChannelBaseAndMask(DMA_HandleTypeDef *hdma); 114 static void DMA_CalcDMAMUXRequestGenBaseAndMask(DMA_HandleTypeDef *hdma); 152 HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma) in HAL_DMA_Init() argument 157 if (hdma == NULL) in HAL_DMA_Init() 163 assert_param(IS_DMA_ALL_INSTANCE(hdma->Instance)); in HAL_DMA_Init() 164 assert_param(IS_DMA_DIRECTION(hdma->Init.Direction)); in HAL_DMA_Init() 165 assert_param(IS_DMA_PERIPHERAL_INC_STATE(hdma->Init.PeriphInc)); in HAL_DMA_Init() 166 assert_param(IS_DMA_MEMORY_INC_STATE(hdma->Init.MemInc)); in HAL_DMA_Init() 167 assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment)); in HAL_DMA_Init() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32h5xx/drivers/src/ |
D | stm32h5xx_hal_dma.c | 202 static void DMA_SetConfig(DMA_HandleTypeDef const *const hdma, 206 static void DMA_Init(DMA_HandleTypeDef const *const hdma); 238 HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *const hdma) in HAL_DMA_Init() argument 244 if (hdma == NULL) in HAL_DMA_Init() 250 assert_param(IS_DMA_ALL_INSTANCE(hdma->Instance)); in HAL_DMA_Init() 251 assert_param(IS_DMA_DIRECTION(hdma->Init.Direction)); in HAL_DMA_Init() 252 …if ((hdma->Init.Direction == DMA_MEMORY_TO_PERIPH) || (hdma->Init.Direction == DMA_MEMORY_TO_MEMOR… in HAL_DMA_Init() 254 assert_param(IS_DMA_REQUEST(hdma->Init.Request)); in HAL_DMA_Init() 256 assert_param(IS_DMA_BLOCK_HW_REQUEST(hdma->Init.BlkHWRequest)); in HAL_DMA_Init() 257 assert_param(IS_DMA_SOURCE_INC(hdma->Init.SrcInc)); in HAL_DMA_Init() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32wlxx/drivers/src/ |
D | stm32wlxx_hal_dma.c | 112 static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32… 113 static void DMA_CalcDMAMUXChannelBaseAndMask(DMA_HandleTypeDef *hdma); 114 static void DMA_CalcDMAMUXRequestGenBaseAndMask(DMA_HandleTypeDef *hdma); 152 HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma) in HAL_DMA_Init() argument 155 if (hdma == NULL) in HAL_DMA_Init() 161 assert_param(IS_DMA_ALL_INSTANCE(hdma->Instance)); in HAL_DMA_Init() 162 assert_param(IS_DMA_DIRECTION(hdma->Init.Direction)); in HAL_DMA_Init() 163 assert_param(IS_DMA_PERIPHERAL_INC_STATE(hdma->Init.PeriphInc)); in HAL_DMA_Init() 164 assert_param(IS_DMA_MEMORY_INC_STATE(hdma->Init.MemInc)); in HAL_DMA_Init() 165 assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment)); in HAL_DMA_Init() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32u5xx/drivers/src/ |
D | stm32u5xx_hal_dma.c | 204 static void DMA_SetConfig(DMA_HandleTypeDef const *const hdma, 208 static void DMA_Init(DMA_HandleTypeDef const *const hdma); 240 HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *const hdma) in HAL_DMA_Init() argument 246 if (hdma == NULL) in HAL_DMA_Init() 252 assert_param(IS_DMA_ALL_INSTANCE(hdma->Instance)); in HAL_DMA_Init() 253 assert_param(IS_DMA_DIRECTION(hdma->Init.Direction)); in HAL_DMA_Init() 254 …if ((hdma->Init.Direction == DMA_MEMORY_TO_PERIPH) || (hdma->Init.Direction == DMA_MEMORY_TO_MEMOR… in HAL_DMA_Init() 256 assert_param(IS_DMA_REQUEST(hdma->Init.Request)); in HAL_DMA_Init() 258 assert_param(IS_DMA_BLOCK_HW_REQUEST(hdma->Init.BlkHWRequest)); in HAL_DMA_Init() 259 assert_param(IS_DMA_SOURCE_INC(hdma->Init.SrcInc)); in HAL_DMA_Init() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32f7xx/drivers/src/ |
D | stm32f7xx_hal_dma.c | 133 static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32… 134 static uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma); 135 static HAL_StatusTypeDef DMA_CheckFifoParam(DMA_HandleTypeDef *hdma); 171 HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma) in HAL_DMA_Init() argument 178 if(hdma == NULL) in HAL_DMA_Init() 184 assert_param(IS_DMA_STREAM_ALL_INSTANCE(hdma->Instance)); in HAL_DMA_Init() 185 assert_param(IS_DMA_CHANNEL(hdma->Init.Channel)); in HAL_DMA_Init() 186 assert_param(IS_DMA_DIRECTION(hdma->Init.Direction)); in HAL_DMA_Init() 187 assert_param(IS_DMA_PERIPHERAL_INC_STATE(hdma->Init.PeriphInc)); in HAL_DMA_Init() 188 assert_param(IS_DMA_MEMORY_INC_STATE(hdma->Init.MemInc)); in HAL_DMA_Init() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32f4xx/drivers/src/ |
D | stm32f4xx_hal_dma.c | 132 static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32… 133 static uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma); 134 static HAL_StatusTypeDef DMA_CheckFifoParam(DMA_HandleTypeDef *hdma); 170 HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma) in HAL_DMA_Init() argument 177 if(hdma == NULL) in HAL_DMA_Init() 183 assert_param(IS_DMA_STREAM_ALL_INSTANCE(hdma->Instance)); in HAL_DMA_Init() 184 assert_param(IS_DMA_CHANNEL(hdma->Init.Channel)); in HAL_DMA_Init() 185 assert_param(IS_DMA_DIRECTION(hdma->Init.Direction)); in HAL_DMA_Init() 186 assert_param(IS_DMA_PERIPHERAL_INC_STATE(hdma->Init.PeriphInc)); in HAL_DMA_Init() 187 assert_param(IS_DMA_MEMORY_INC_STATE(hdma->Init.MemInc)); in HAL_DMA_Init() [all …]
|
D | stm32f4xx_hal_dma_ex.c | 60 static void DMA_MultiBufferSetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddr… 100 HAL_StatusTypeDef HAL_DMAEx_MultiBufferStart(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t… in HAL_DMAEx_MultiBufferStart() argument 108 if (hdma->Init.Direction == DMA_MEMORY_TO_MEMORY) in HAL_DMAEx_MultiBufferStart() 110 hdma->ErrorCode = HAL_DMA_ERROR_NOT_SUPPORTED; in HAL_DMAEx_MultiBufferStart() 116 __HAL_LOCK(hdma); in HAL_DMAEx_MultiBufferStart() 118 if(HAL_DMA_STATE_READY == hdma->State) in HAL_DMAEx_MultiBufferStart() 121 hdma->State = HAL_DMA_STATE_BUSY; in HAL_DMAEx_MultiBufferStart() 124 hdma->Instance->CR |= (uint32_t)DMA_SxCR_DBM; in HAL_DMAEx_MultiBufferStart() 127 hdma->Instance->M1AR = SecondMemAddress; in HAL_DMAEx_MultiBufferStart() 130 DMA_MultiBufferSetConfig(hdma, SrcAddress, DstAddress, DataLength); in HAL_DMAEx_MultiBufferStart() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32f2xx/drivers/src/ |
D | stm32f2xx_hal_dma.c | 134 static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32… 135 static uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma); 136 static HAL_StatusTypeDef DMA_CheckFifoParam(DMA_HandleTypeDef *hdma); 172 HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma) in HAL_DMA_Init() argument 179 if(hdma == NULL) in HAL_DMA_Init() 185 assert_param(IS_DMA_STREAM_ALL_INSTANCE(hdma->Instance)); in HAL_DMA_Init() 186 assert_param(IS_DMA_CHANNEL(hdma->Init.Channel)); in HAL_DMA_Init() 187 assert_param(IS_DMA_DIRECTION(hdma->Init.Direction)); in HAL_DMA_Init() 188 assert_param(IS_DMA_PERIPHERAL_INC_STATE(hdma->Init.PeriphInc)); in HAL_DMA_Init() 189 assert_param(IS_DMA_MEMORY_INC_STATE(hdma->Init.MemInc)); in HAL_DMA_Init() [all …]
|
D | stm32f2xx_hal_dma_ex.c | 61 static void DMA_MultiBufferSetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddr… 101 HAL_StatusTypeDef HAL_DMAEx_MultiBufferStart(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t… in HAL_DMAEx_MultiBufferStart() argument 109 if (hdma->Init.Direction == DMA_MEMORY_TO_MEMORY) in HAL_DMAEx_MultiBufferStart() 111 hdma->ErrorCode = HAL_DMA_ERROR_NOT_SUPPORTED; in HAL_DMAEx_MultiBufferStart() 117 __HAL_LOCK(hdma); in HAL_DMAEx_MultiBufferStart() 119 if(HAL_DMA_STATE_READY == hdma->State) in HAL_DMAEx_MultiBufferStart() 122 hdma->State = HAL_DMA_STATE_BUSY; in HAL_DMAEx_MultiBufferStart() 125 hdma->Instance->CR |= (uint32_t)DMA_SxCR_DBM; in HAL_DMAEx_MultiBufferStart() 128 hdma->Instance->M1AR = SecondMemAddress; in HAL_DMAEx_MultiBufferStart() 131 DMA_MultiBufferSetConfig(hdma, SrcAddress, DstAddress, DataLength); in HAL_DMAEx_MultiBufferStart() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32wbaxx/drivers/src/ |
D | stm32wbaxx_hal_dma.c | 204 static void DMA_SetConfig(DMA_HandleTypeDef const *const hdma, 208 static void DMA_Init(DMA_HandleTypeDef const *const hdma); 240 HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *const hdma) in HAL_DMA_Init() argument 246 if (hdma == NULL) in HAL_DMA_Init() 252 assert_param(IS_DMA_ALL_INSTANCE(hdma->Instance)); in HAL_DMA_Init() 253 assert_param(IS_DMA_DIRECTION(hdma->Init.Direction)); in HAL_DMA_Init() 254 if (hdma->Init.Direction != DMA_MEMORY_TO_MEMORY) in HAL_DMA_Init() 256 assert_param(IS_DMA_REQUEST(hdma->Init.Request)); in HAL_DMA_Init() 258 assert_param(IS_DMA_BLOCK_HW_REQUEST(hdma->Init.BlkHWRequest)); in HAL_DMA_Init() 259 assert_param(IS_DMA_SOURCE_INC(hdma->Init.SrcInc)); in HAL_DMA_Init() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32f1xx/drivers/src/ |
D | stm32f1xx_hal_dma.c | 106 static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32… 143 HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma) in HAL_DMA_Init() argument 148 if(hdma == NULL) in HAL_DMA_Init() 154 assert_param(IS_DMA_ALL_INSTANCE(hdma->Instance)); in HAL_DMA_Init() 155 assert_param(IS_DMA_DIRECTION(hdma->Init.Direction)); in HAL_DMA_Init() 156 assert_param(IS_DMA_PERIPHERAL_INC_STATE(hdma->Init.PeriphInc)); in HAL_DMA_Init() 157 assert_param(IS_DMA_MEMORY_INC_STATE(hdma->Init.MemInc)); in HAL_DMA_Init() 158 assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment)); in HAL_DMA_Init() 159 assert_param(IS_DMA_MEMORY_DATA_SIZE(hdma->Init.MemDataAlignment)); in HAL_DMA_Init() 160 assert_param(IS_DMA_MODE(hdma->Init.Mode)); in HAL_DMA_Init() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32l1xx/drivers/src/ |
D | stm32l1xx_hal_dma.c | 107 static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32… 144 HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma) in HAL_DMA_Init() argument 149 if(hdma == NULL) in HAL_DMA_Init() 155 assert_param(IS_DMA_ALL_INSTANCE(hdma->Instance)); in HAL_DMA_Init() 156 assert_param(IS_DMA_DIRECTION(hdma->Init.Direction)); in HAL_DMA_Init() 157 assert_param(IS_DMA_PERIPHERAL_INC_STATE(hdma->Init.PeriphInc)); in HAL_DMA_Init() 158 assert_param(IS_DMA_MEMORY_INC_STATE(hdma->Init.MemInc)); in HAL_DMA_Init() 159 assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment)); in HAL_DMA_Init() 160 assert_param(IS_DMA_MEMORY_DATA_SIZE(hdma->Init.MemDataAlignment)); in HAL_DMA_Init() 161 assert_param(IS_DMA_MODE(hdma->Init.Mode)); in HAL_DMA_Init() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32f0xx/drivers/src/ |
D | stm32f0xx_hal_dma.c | 99 static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32… 100 static void DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma); 137 HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma) in HAL_DMA_Init() argument 142 if (NULL == hdma) in HAL_DMA_Init() 148 assert_param(IS_DMA_ALL_INSTANCE(hdma->Instance)); in HAL_DMA_Init() 149 assert_param(IS_DMA_DIRECTION(hdma->Init.Direction)); in HAL_DMA_Init() 150 assert_param(IS_DMA_PERIPHERAL_INC_STATE(hdma->Init.PeriphInc)); in HAL_DMA_Init() 151 assert_param(IS_DMA_MEMORY_INC_STATE(hdma->Init.MemInc)); in HAL_DMA_Init() 152 assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment)); in HAL_DMA_Init() 153 assert_param(IS_DMA_MEMORY_DATA_SIZE(hdma->Init.MemDataAlignment)); in HAL_DMA_Init() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32f3xx/drivers/src/ |
D | stm32f3xx_hal_dma.c | 98 static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32… 99 static void DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma); 136 HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma) in HAL_DMA_Init() argument 141 if(NULL == hdma) in HAL_DMA_Init() 147 assert_param(IS_DMA_ALL_INSTANCE(hdma->Instance)); in HAL_DMA_Init() 148 assert_param(IS_DMA_DIRECTION(hdma->Init.Direction)); in HAL_DMA_Init() 149 assert_param(IS_DMA_PERIPHERAL_INC_STATE(hdma->Init.PeriphInc)); in HAL_DMA_Init() 150 assert_param(IS_DMA_MEMORY_INC_STATE(hdma->Init.MemInc)); in HAL_DMA_Init() 151 assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment)); in HAL_DMA_Init() 152 assert_param(IS_DMA_MEMORY_DATA_SIZE(hdma->Init.MemDataAlignment)); in HAL_DMA_Init() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32l0xx/drivers/src/ |
D | stm32l0xx_hal_dma.c | 103 static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32… 140 HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma) in HAL_DMA_Init() argument 145 if(hdma == NULL) in HAL_DMA_Init() 151 assert_param(IS_DMA_ALL_INSTANCE(hdma->Instance)); in HAL_DMA_Init() 152 assert_param(IS_DMA_ALL_REQUEST(hdma->Init.Request)); in HAL_DMA_Init() 153 assert_param(IS_DMA_DIRECTION(hdma->Init.Direction)); in HAL_DMA_Init() 154 assert_param(IS_DMA_PERIPHERAL_INC_STATE(hdma->Init.PeriphInc)); in HAL_DMA_Init() 155 assert_param(IS_DMA_MEMORY_INC_STATE(hdma->Init.MemInc)); in HAL_DMA_Init() 156 assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment)); in HAL_DMA_Init() 157 assert_param(IS_DMA_MEMORY_DATA_SIZE(hdma->Init.MemDataAlignment)); in HAL_DMA_Init() [all …]
|