Skip to content

Commit 585b369

Browse files
committed
Explicitly add gpio write/read prototypes to the HAL header
1 parent 95e66aa commit 585b369

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

libraries/mbed/hal/gpio_api.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,13 @@ extern "C" {
2929
uint32_t gpio_set(PinName pin);
3030

3131
/* GPIO object */
32-
void gpio_init(gpio_t *obj, PinName pin, PinDirection direction);
33-
void gpio_mode(gpio_t *obj, PinMode mode);
34-
void gpio_dir (gpio_t *obj, PinDirection direction);
32+
void gpio_init (gpio_t *obj, PinName pin, PinDirection direction);
33+
34+
void gpio_mode (gpio_t *obj, PinMode mode);
35+
void gpio_dir (gpio_t *obj, PinDirection direction);
36+
37+
void gpio_write(gpio_t *obj, int value);
38+
int gpio_read (gpio_t *obj);
3539

3640
#ifdef __cplusplus
3741
}

0 commit comments

Comments
 (0)