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.
Revision 20:01d0a680e45a, committed 2022-12-12
- 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.