a

Fork of mbed by -deleted-

Files at this revision

API Documentation at this revision

Comitter:
simon
Date:
Fri Sep 03 09:33:18 2010 +0000
Parent:
23:74b8d43b5817
Child:
25:9a9732ce53a1
Commit message:
* Make PortOut, PortInOut transitions happen at same time
* Fix CAN attach bug

Changed in this revision

LPC1768/capi.ar Show annotated file Show diff for this revision Revisions of this file
LPC1768/core_cm3.o Show annotated file Show diff for this revision Revisions of this file
LPC1768/mbed.ar Show annotated file Show diff for this revision Revisions of this file
LPC2368/capi.ar Show annotated file Show diff for this revision Revisions of this file
LPC2368/mbed.ar Show annotated file Show diff for this revision Revisions of this file
PortInOut.h Show annotated file Show diff for this revision Revisions of this file
PortOut.h Show annotated file Show diff for this revision Revisions of this file
mbed.h Show annotated file Show diff for this revision Revisions of this file
Binary file LPC1768/capi.ar has changed
Binary file LPC1768/core_cm3.o has changed
Binary file LPC1768/mbed.ar has changed
Binary file LPC2368/capi.ar has changed
Binary file LPC2368/mbed.ar has changed
--- a/PortInOut.h	Thu Aug 26 08:50:26 2010 +0000
+++ b/PortInOut.h	Fri Sep 03 09:33:18 2010 +0000
@@ -32,8 +32,7 @@
      *  value - An integer specifying a bit to write for every corresponding port pin
      */    
     void write(int value) {
-        _gpio->FIOSET = value & _mask;
-        _gpio->FIOCLR = ~(value) & _mask;
+        _gpio->FIOPIN = (_gpio->FIOPIN & ~_mask) | (value & _mask);
     }
 
     /* Function: read
--- a/PortOut.h	Thu Aug 26 08:50:26 2010 +0000
+++ b/PortOut.h	Fri Sep 03 09:33:18 2010 +0000
@@ -53,8 +53,7 @@
      *  value - An integer specifying a bit to write for every corresponding PortOut pin
      */    
     void write(int value) {
-        _gpio->FIOSET = value & _mask;
-        _gpio->FIOCLR = ~(value) & _mask;
+        _gpio->FIOPIN = (_gpio->FIOPIN & ~_mask) | (value & _mask);
     }
 
     /* Function: read
--- a/mbed.h	Thu Aug 26 08:50:26 2010 +0000
+++ b/mbed.h	Fri Sep 03 09:33:18 2010 +0000
@@ -6,7 +6,7 @@
 #ifndef MBED_H
 #define MBED_H
 
-#define MBED_LIBRARY_VERSION 24
+#define MBED_LIBRARY_VERSION 26
  
 // Useful C libraries
 #include <stdio.h>