Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
123c0651
Commit
123c0651
authored
May 13, 2019
by
iabdalkader
Committed by
Damien George
May 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stm32/dma: Always reset and configure the H7 DMA peripheral.
This is required for the H7 DMA to work.
parent
993ca572
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ports/stm32/dma.c
ports/stm32/dma.c
+2
-2
No files found.
ports/stm32/dma.c
View file @
123c0651
...
...
@@ -626,8 +626,8 @@ void dma_init(DMA_HandleTypeDef *dma, const dma_descr_t *dma_descr, uint32_t dir
dma_enable_clock
(
dma_id
);
#if defined(STM32L4)
// Always reset and configure the L4 DMA peripheral
#if defined(STM32
H7) || defined(STM32
L4)
// Always reset and configure the
H7 and
L4 DMA peripheral
// (dma->State is set to HAL_DMA_STATE_RESET by memset above)
// TODO: understand how L4 DMA works so this is not needed
HAL_DMA_DeInit
(
dma
);
...
...
Write
Preview
Markdown
is supported
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