Igor Skochinsky
/
FastIO
Fast GPIO using C++ templates. Now with port I/O.
Revision 4:b8e40f2a0aac, committed 2010-05-25
- 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 |
diff -r 8d217a0bb245 -r b8e40f2a0aac FastIO.h --- 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() {