version_2.0
Dependents: cc3000_ping_demo_try_2
Fork of mbed by
Diff: gpio_api.h
- Revision:
- 64:e3affc9e7238
- Parent:
- 59:0883845fe643
- Child:
- 66:9c8f0e3462fb
--- 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 }