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
Diff: PortIn.h
- Revision:
- 28:667d61c9177b
- Parent:
- 27:7110ebee3484
- Child:
- 43:e2ed12d17f06
--- a/PortIn.h Tue Nov 29 14:59:27 2011 +0000
+++ b/PortIn.h Thu Dec 08 12:04:01 2011 +0000
@@ -54,9 +54,7 @@
* Variables:
* returns - An integer with each bit corresponding to associated port pin setting
*/
- int read() {
- return _gpio->FIOPIN & _mask;
- }
+ int read();
/* Function: mode
* Set the input pin mode
@@ -74,9 +72,11 @@
}
private:
+#if defined(TARGET_LPC1768) || defined(TARGET_LPC2368)
LPC_GPIO_TypeDef *_gpio;
+#endif
PortName _port;
- uint32_t _mask;
+ uint32_t _mask;
};
} // namespace mbed
