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: hello SerialTestv11 SerialTestv12 Sierpinski ... more
Diff: gpio_api.h
- Revision:
- 64:e3affc9e7238
- Parent:
- 59:0883845fe643
- Child:
- 66:9c8f0e3462fb
diff -r b3110cd2dd17 -r e3affc9e7238 gpio_api.h --- a/gpio_api.h Wed May 08 14:50:20 2013 +0100 +++ b/gpio_api.h Mon Aug 05 12:28:09 2013 +0300 @@ -29,9 +29,13 @@ uint32_t gpio_set(PinName pin); /* GPIO object */ -void gpio_init(gpio_t *obj, PinName pin, PinDirection direction); -void gpio_mode(gpio_t *obj, PinMode mode); -void gpio_dir (gpio_t *obj, PinDirection direction); +void gpio_init (gpio_t *obj, PinName pin, PinDirection direction); + +void gpio_mode (gpio_t *obj, PinMode mode); +void gpio_dir (gpio_t *obj, PinDirection direction); + +void gpio_write(gpio_t *obj, int value); +int gpio_read (gpio_t *obj); #ifdef __cplusplus }


