diff options
author | Keith Packard <keithp@keithp.com> | 2012-08-06 19:33:44 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-08-06 19:33:44 -0700 |
commit | 6171892fa32e8a662a494ec6ba28a82fddc68589 (patch) | |
tree | 273dbb25febfa0ea8fff5c0909dd044c50102d52 /src/stm/stm32l.h | |
parent | de701d5a234cd21930cf92c9cabebb0e230da9b5 (diff) |
altos: Add ao_gpio_get and ao_exti_set_mode
Needed to support general GPIO interrupts
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm/stm32l.h')
-rw-r--r-- | src/stm/stm32l.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm/stm32l.h b/src/stm/stm32l.h index 4d665e8b..3a498a0a 100644 --- a/src/stm/stm32l.h +++ b/src/stm/stm32l.h @@ -167,7 +167,7 @@ stm_gpio_set(struct stm_gpio *gpio, int pin, uint8_t value) { } static inline uint8_t -stm_gpio_isset(struct stm_gpio *gpio, int pin) { +stm_gpio_get(struct stm_gpio *gpio, int pin) { return (gpio->idr >> pin) & 1; } |