diff options
author | Damien George <damien.p.george@gmail.com> | 2017-03-28 12:56:18 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-03-28 12:56:18 +1100 |
commit | e997bb632890fd579a3b8046daf9b6bcfcceed98 (patch) | |
tree | 2dfdcd57061719290ddcc8e8af4fc2a1c690f89f | |
parent | ff927cb106a6a74bd04f729bc0c1fded6955881f (diff) | |
download | micropython-e997bb632890fd579a3b8046daf9b6bcfcceed98.tar.gz micropython-e997bb632890fd579a3b8046daf9b6bcfcceed98.zip |
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.
-rw-r--r-- | stmhal/hal/f7/src/stm32f7xx_hal_dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/hal/f7/src/stm32f7xx_hal_dma.c b/stmhal/hal/f7/src/stm32f7xx_hal_dma.c index 92f0d975c8..df915ce529 100644 --- a/stmhal/hal/f7/src/stm32f7xx_hal_dma.c +++ b/stmhal/hal/f7/src/stm32f7xx_hal_dma.c @@ -149,7 +149,7 @@ typedef struct * @{ */ static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength); -static uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma); +uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma); static HAL_StatusTypeDef DMA_CheckFifoParam(DMA_HandleTypeDef *hdma); /** @@ -1187,7 +1187,7 @@ static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t * the configuration information for the specified DMA Stream. * @retval Stream base address */ -static uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma) +uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma) { uint32_t stream_number = (((uint32_t)hdma->Instance & 0xFFU) - 16U) / 24U; |