Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
8a1a5c23
Commit
8a1a5c23
authored
Aug 04, 2015
by
Dave Hylands
Committed by
Damien George
Aug 05, 2015
Browse files
stmhal: Fix hardfault when configured as a SPI slave
parent
5e11d2b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/spi.c
View file @
8a1a5c23
...
...
@@ -546,7 +546,9 @@ STATIC mp_obj_t pyb_spi_recv(mp_uint_t n_args, const mp_obj_t *pos_args, mp_map_
if
(
status
==
HAL_OK
)
{
status
=
spi_wait_dma_finished
(
self
->
spi
,
args
[
1
].
u_int
);
}
dma_deinit
(
&
tx_dma
);
if
(
self
->
spi
->
hdmatx
!=
NULL
)
{
dma_deinit
(
&
tx_dma
);
}
dma_deinit
(
&
rx_dma
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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