Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
7b1804c5
Commit
7b1804c5
authored
Mar 28, 2017
by
Damien George
Browse files
stmhal/dma: Fix reinitialisation of DMA on F7 MCUs, following F4.
parent
e997bb63
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/dma.c
View file @
7b1804c5
...
...
@@ -443,7 +443,7 @@ void dma_init(DMA_HandleTypeDef *dma, const dma_descr_t *dma_descr, void *data){
}
else
{
// only necessary initialization
dma
->
State
=
HAL_DMA_STATE_READY
;
#if defined(MCU_SERIES_F4)
#if defined(MCU_SERIES_F4)
|| defined(MCU_SERIES_F7)
// calculate DMA base address and bitshift to be used in IRQ handler
extern
uint32_t
DMA_CalcBaseAndBitshift
(
DMA_HandleTypeDef
*
hdma
);
DMA_CalcBaseAndBitshift
(
dma
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment