[riot-notifications] [RIOT-OS/RIOT] cpu/stm32_common: fix DMA releasing in UART driver (#10942)

Vincent Dupont notifications at github.com
Mon Feb 4 23:37:20 CET 2019


### Contribution description

This releases the DMA after disabling UART transfer instead of before.

Without this patch, when printing from different threads, the UART could get stuck because one thread would disable DMA while another one was printing.

### Testing procedure

Let different threads print simultaneously and check it does not get stuck.



You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/10942

-- Commit Summary --

  * cpu/stm32_common: fix DMA releasing in UART driver

-- File Changes --

    M cpu/stm32_common/periph/uart.c (2)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/10942.patch
https://github.com/RIOT-OS/RIOT/pull/10942.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10942
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190204/2a93cf08/attachment.html>


More information about the notifications mailing list