Fast GPIO using C++ templates. Now with port I/O.

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
igorsk
Date:
Tue May 25 08:35:39 2010 +0000
Parent:
3:8d217a0bb245
Commit message:

Changed in this revision

FastIO.h Show annotated file Show diff for this revision Revisions of this file
--- a/FastIO.h	Sat May 22 23:31:39 2010 +0000
+++ b/FastIO.h	Tue May 25 08:35:39 2010 +0000
@@ -96,7 +96,7 @@
     void write(int value)
     {
         PORTDEFPORT(port)->FIOSET = value & mask;
-        PORTDEFPORT(port)->FIOCLR = value & ~mask;
+        PORTDEFPORT(port)->FIOCLR = ~value & mask;
     } 
     int read()
     {