Arnaud VALLEY / Mbed 2 deprecated Pinscape_Controller_V2_arnoz

Dependencies:   mbed FastIO FastPWM USBDevice

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