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.
Dependents: cc3000_ping_demo_try_2
Fork of mbed by
Diff: PortInOut.h
- Revision:
- 24:e2ac27c8e93e
- Parent:
- 18:b3c9f16cbb96
- Child:
- 27:7110ebee3484
--- 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
