Fork of Andy Kirkham's MODDMA GPDMA Controller for Mbed OS 6
Read MODDMA for more info.
Revision 20:01d0a680e45a, committed 22 months ago
- Comitter:
- hudakz
- Date:
- Mon Dec 12 15:08:37 2022 +0000
- Parent:
- 19:bf3ae4c3635d
- Commit message:
- Fork of Andy Kirkham's MODDMA GPDMA Controller for Mbed OS 6.; The examples are updated in order to compile with Mbed OS 6.
Changed in this revision
| example3.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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.