Skip to content

Commit e997bb6

Browse files
committed
stmhal/hal: For F7 MCUs, expose DMA_CalcBaseAndBitshift function.
It's needed by the DMA driver to do an efficient reinitialisation. This patch follows what is done in the F4 HAL.
1 parent ff927cb commit e997bb6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

stmhal/hal/f7/src/stm32f7xx_hal_dma.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ typedef struct
149149
* @{
150150
*/
151151
static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength);
152-
static uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma);
152+
uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma);
153153
static HAL_StatusTypeDef DMA_CheckFifoParam(DMA_HandleTypeDef *hdma);
154154

155155
/**
@@ -1187,7 +1187,7 @@ static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t
11871187
* the configuration information for the specified DMA Stream.
11881188
* @retval Stream base address
11891189
*/
1190-
static uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma)
1190+
uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma)
11911191
{
11921192
uint32_t stream_number = (((uint32_t)hdma->Instance & 0xFFU) - 16U) / 24U;
11931193

0 commit comments

Comments
 (0)