MODSERIAL with support for more devices

Dependents:   1D-Pong BMT-K9_encoder BMT-K9-Regelaar programma_filter ... more

Check the cookbook page for more information: https://mbed.org/cookbook/MODSERIAL

Did you add a device? Please send a pull request so we can keep everything in one library instead of many copies. In that case also send a PM, since currently mbed does not inform of new pull requests. I will then also add you to the developers of this library so you can do other changes directly.

Revision:
7:ffa4a7cb7f8d
Parent:
6:c8f77fe1cc10
Child:
8:775f860e94d3
--- a/MODSERIAL.h	Sun Nov 21 16:25:44 2010 +0000
+++ b/MODSERIAL.h	Mon Nov 22 09:19:50 2010 +0000
@@ -18,6 +18,12 @@
     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
     THE SOFTWARE.
+    
+    @file          MODSERIAL.h 
+    @purpose       Extends Serial to provide fully buffered IO
+    @version       1.6
+    @date          Nov 2010
+    @author        Andy Kirkham
 */
 
 #ifndef MODSERIAL_H
@@ -134,19 +140,6 @@
         , BufferOversize = -2   /*!< Oversized buffer. */
     };
     
-    //! DMA channels.
-    enum dmaChannel {
-          NotInUse = -1     /*!< DMA not in use */
-        , Channel0 =  0     /*!< Channel 0 */
-        , Channel1          /*!< Channel 1 */
-        , Channel2          /*!< Channel 2 */
-        , Channel3          /*!< Channel 3 */
-        , Channel4          /*!< Channel 4 */
-        , Channel5          /*!< Channel 5 */
-        , Channel6          /*!< Channel 6 */
-        , Channel7          /*!< Channel 7 */
-    };
-    
     /**
      * The MODSERIAL constructor is used to initialise the serial object.
      *