diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-08-20 17:06:17 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-08-27 12:45:01 -0400 |
commit | fa3d2b97bd903bc521f3ee6e2606c05b761766c6 (patch) | |
tree | 4c996b8e73785038edeb386c17325e29a063138f /src/samd21/gpio.h | |
parent | eec58b99fe46f5886a91039e0e7ca515a4154f40 (diff) | |
download | kutter-fa3d2b97bd903bc521f3ee6e2606c05b761766c6.tar.gz kutter-fa3d2b97bd903bc521f3ee6e2606c05b761766c6.tar.xz kutter-fa3d2b97bd903bc521f3ee6e2606c05b761766c6.zip |
samd21: Add support for gpio_x_reset()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/samd21/gpio.h')
-rw-r--r-- | src/samd21/gpio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/samd21/gpio.h b/src/samd21/gpio.h index 0cba5dba..ebdeb412 100644 --- a/src/samd21/gpio.h +++ b/src/samd21/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); #endif // gpio.h |