[riot-notifications] [RIOT-OS/RIOT] Feature/dma functions (#16440)

Sebastiaan de Schaetzen notifications at github.com
Tue May 4 15:57:02 CEST 2021


### Contribution description
This PR adds two additional functions to the STM32 DMA API:
 - `dma_left(dma)` - Gets the number of bytes that still have to be transferred by the DMA controller. This allows retrieving this number without having to suspend and resume the transfer using `dma_suspend` and `dma_resume`.
 - `dma_transfer_callback(dma, callback, arg)` - Allows setting a user-defined callback which gets executed when the Transfer Complete interrupt is fired.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * stm32/dma: add dma_left function
  * stm32/dma: add ability to call function on DMA Transfer Complete IRQ

-- File Changes --

    M cpu/stm32/include/periph_cpu.h (18)
    M cpu/stm32/periph/dma.c (23)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/16440.patch
https://github.com/RIOT-OS/RIOT/pull/16440.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/16440
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210504/14310b2b/attachment.htm>


More information about the notifications mailing list