Fork of Andy Kirkham's MODDMA GPDMA Controller for Mbed OS 6
Read MODDMA for more info.
Diff: example3.h
- Revision:
- 20:01d0a680e45a
- Parent:
- 19:bf3ae4c3635d
--- a/example3.h Mon Dec 12 15:05:21 2022 +0000 +++ b/example3.h Mon Dec 12 15:08:37 2022 +0000 @@ -23,7 +23,6 @@ DigitalOut led3(LED3); uint32_t buffer[NUM_OF_SAMPLES]; - bool dmaTransferComplete; MODDMA dma; @@ -76,7 +75,6 @@ conf->dmacSync(MODDMA::MAT1_0); conf->attach_tc(TC0_callback); conf->attach_err(ERR0_callback); - ; // end conf. // Prepare configuration. if (!dma.Setup(conf)) { @@ -122,7 +120,6 @@ MODDMA_Config* config = dma.getConfig(); // Finish the DMA cycle by shutting down the channel. - dma.Disable((MODDMA::CHANNELS) config->channelNum()); // Tell main() while(1) loop to print the results.