diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-07-28 11:32:56 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-07-28 11:32:56 -0400 |
commit | ef0784afe6f142b8549ecf7630cbbd5ed627bd36 (patch) | |
tree | c852aa7e7d8d4de7eeced3c571868b493ab2aebb /src/stm32f4/adc.c | |
parent | 7d4c475e52a17d5511288c41a0b6abff46bb675f (diff) | |
download | kutter-ef0784afe6f142b8549ecf7630cbbd5ed627bd36.tar.gz kutter-ef0784afe6f142b8549ecf7630cbbd5ed627bd36.tar.xz kutter-ef0784afe6f142b8549ecf7630cbbd5ed627bd36.zip |
stm32f4: Encode mode/func into single parameter of gpio_peripheral
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32f4/adc.c')
-rw-r--r-- | src/stm32f4/adc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm32f4/adc.c b/src/stm32f4/adc.c index e112c2a0..00eac8f0 100644 --- a/src/stm32f4/adc.c +++ b/src/stm32f4/adc.c @@ -44,7 +44,7 @@ gpio_adc_setup(uint32_t pin) | (aticks << 21) | (aticks << 24) | (aticks << 27)); ADC1->CR2 = ADC_CR2_ADON; - gpio_peripheral(pin, GPIO_ANALOG, 0, 0); + gpio_peripheral(pin, GPIO_ANALOG, 0); return (struct gpio_adc){ .chan = chan }; } |