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 mbed by
Revision 24:e2ac27c8e93e, committed 2010-09-03
- 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
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>
