Skip to content

Commit

Permalink
adc: fix pin drive config
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Nov 30, 2024
1 parent 2d58aa6 commit acf1f17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/driver/mcu/at32/adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static void adc_init_pin(adc_chan_t chan, gpio_pins_t pin) {
gpio_config_t gpio_init;
gpio_init.mode = GPIO_ANALOG;
gpio_init.output = GPIO_OPENDRAIN;
gpio_init.output = GPIO_DRIVE_NORMAL;
gpio_init.drive = GPIO_DRIVE_NORMAL;
gpio_init.pull = GPIO_NO_PULL;
gpio_pin_init(pin, gpio_init);
}
Expand Down
2 changes: 1 addition & 1 deletion src/driver/mcu/stm32/adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ static void adc_init_pin(adc_chan_t chan, gpio_pins_t pin) {
gpio_config_t gpio_init;
gpio_init.mode = GPIO_ANALOG;
gpio_init.output = GPIO_OPENDRAIN;
gpio_init.output = GPIO_DRIVE_NORMAL;
gpio_init.drive = GPIO_DRIVE_NORMAL;
gpio_init.pull = GPIO_NO_PULL;
gpio_pin_init(pin, gpio_init);
}
Expand Down

0 comments on commit acf1f17

Please sign in to comment.