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: DigitalOut.h
- Revision:
- 85:024bf7f99721
- Parent:
- 81:7d30d6019079
--- a/DigitalOut.h Mon May 19 18:14:09 2014 +0100
+++ b/DigitalOut.h Wed Jun 11 15:14:05 2014 +0100
@@ -45,7 +45,7 @@
*
* @param pin DigitalOut pin to connect to
*/
- DigitalOut(PinName pin) {
+ DigitalOut(PinName pin) : gpio() {
gpio_init_out(&gpio, pin);
}
@@ -54,7 +54,7 @@
* @param pin DigitalOut pin to connect to
* @param value the initial pin value
*/
- DigitalOut(PinName pin, int value){
+ DigitalOut(PinName pin, int value) : gpio() {
gpio_init_out_ex(&gpio, pin, value);
}
