diff options
Diffstat (limited to 'src/stm32f4/gpio.h')
-rw-r--r-- | src/stm32f4/gpio.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/stm32f4/gpio.h b/src/stm32f4/gpio.h index 025b30e1..6aaf02c3 100644 --- a/src/stm32f4/gpio.h +++ b/src/stm32f4/gpio.h @@ -21,4 +21,12 @@ struct gpio_in gpio_in_setup(uint32_t pin, int32_t pull_up); void gpio_in_reset(struct gpio_in g, int32_t pull_up); uint8_t gpio_in_read(struct gpio_in g); +struct gpio_adc { + uint32_t chan; +}; +struct gpio_adc gpio_adc_setup(uint32_t pin); +uint32_t gpio_adc_sample(struct gpio_adc g); +uint16_t gpio_adc_read(struct gpio_adc g); +void gpio_adc_cancel_sample(struct gpio_adc g); + #endif // gpio.h |