Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed FastIO FastPWM USBDevice
Diff: SimpleDMA/SimpleDMA.h
- Revision:
- 100:1ff35c07217c
- Parent:
- 54:fd77a6b2f76c
--- a/SimpleDMA/SimpleDMA.h Sat Mar 02 21:05:43 2019 +0000 +++ b/SimpleDMA/SimpleDMA.h Thu Nov 28 23:18:23 2019 +0000 @@ -107,6 +107,16 @@ int start(uint32_t length, bool wait); /** +* Prepare a transfer. This sets everything up for a transfer, but leaves it up +* to the caller to trigger the start of the transfer. This gives the caller +* precise control over the timing of the transfer, for transfers that must be +* synchronized with other functions. To start the DMA transfer, the caller +* must simply "OR" DMAMUX_CHCFG_ENBL_MASK into the byte at the returned +* address. +*/ +volatile uint8_t *prepare(uint32_t length, bool wait); + +/** * Is the DMA channel busy * * @param channel - channel to check, -1 = current channel