diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-08-20 16:11:29 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-08-27 12:40:38 -0400 |
commit | 5a993b743ed25bf9228afdf2dc5fa8836d1dbb1b (patch) | |
tree | 771b5bd769de56ef5232bb0fb3c8c5d3807e7e75 /src/lpc176x/gpio.h | |
parent | 1ae67441c3f3301c3efea89f724b42e3f58e51f9 (diff) | |
download | kutter-5a993b743ed25bf9228afdf2dc5fa8836d1dbb1b.tar.gz kutter-5a993b743ed25bf9228afdf2dc5fa8836d1dbb1b.tar.xz kutter-5a993b743ed25bf9228afdf2dc5fa8836d1dbb1b.zip |
lpc176x: Add support for gpio_x_reset()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/lpc176x/gpio.h')
-rw-r--r-- | src/lpc176x/gpio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lpc176x/gpio.h b/src/lpc176x/gpio.h index a236ebfa..59041fe3 100644 --- a/src/lpc176x/gpio.h +++ b/src/lpc176x/gpio.h @@ -8,6 +8,7 @@ struct gpio_out { uint32_t bit; }; struct gpio_out gpio_out_setup(uint8_t pin, uint8_t val); +void gpio_out_reset(struct gpio_out g, uint8_t val); void gpio_out_toggle_noirq(struct gpio_out g); void gpio_out_toggle(struct gpio_out g); void gpio_out_write(struct gpio_out g, uint8_t val); @@ -17,6 +18,7 @@ struct gpio_in { uint32_t bit; }; struct gpio_in gpio_in_setup(uint8_t pin, int8_t pull_up); +void gpio_in_reset(struct gpio_in g, int8_t pull_up); uint8_t gpio_in_read(struct gpio_in g); struct gpio_adc { |