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.
Fork of MODDMA by
Revision 7:347110c7aefc, committed 2010-11-24
- Comitter:
- AjK
- Date:
- Wed Nov 24 00:32:49 2010 +0000
- Parent:
- 6:40d38be4bb59
- Child:
- 8:cb4d323ce6fd
- Commit message:
- 1.4
Changed in this revision
--- a/ChangeLog.c Tue Nov 23 21:34:21 2010 +0000
+++ b/ChangeLog.c Wed Nov 24 00:32:49 2010 +0000
@@ -1,5 +1,10 @@
/* $Id:$
+1.4 - 23/11/2010
+
+ * Added some extra overloaded methods to make calling certain
+ userland API methods simpler.
+
1.3 - 23/10/2010
* Added the LLI class wrapper.
--- a/MODDMA.h Tue Nov 23 21:34:21 2010 +0000
+++ b/MODDMA.h Wed Nov 24 00:32:49 2010 +0000
@@ -393,6 +393,15 @@
void Enable(uint32_t ChannelNumber) { Enable((CHANNELS)(ChannelNumber & 0x7)); }
/**
+ * Enable and begin data transfer (overloaded function)
+ *
+ * @ingroup API
+ * @param config A pointer to teh configuration
+ */
+ void Enable(MODDMA_Config *config) { Enable( config->channelNum() ); }
+
+
+ /**
* Disable a channel and end data transfer.
*
* @ingroup API
--- a/example1.cpp Tue Nov 23 21:34:21 2010 +0000
+++ b/example1.cpp Wed Nov 24 00:32:49 2010 +0000
@@ -45,7 +45,8 @@
dma.Setup(config);
//dma.Enable( MODDMA::Channel_0 );
- dma.Enable( config->channelNum() );
+ //dma.Enable( config->channelNum() );
+ dma.Enable( config );
while (1) {
led1 = !led1;
