adc-power: f3 adc peripheral takes over gpios automatically?
Doesn't seem to have any impact when just hooking up a pot to the pins at least.
This commit is contained in:
parent
fc60dd45e4
commit
075229952e
1 changed files with 5 additions and 3 deletions
|
|
@ -104,9 +104,11 @@ int main(void)
|
|||
gpio_set(GPIOE, GPIO8);
|
||||
printf("hi guys!\n");
|
||||
|
||||
rcc_periph_clock_enable(RCC_GPIOA);
|
||||
gpio_mode_setup(GPIOA, GPIO_MODE_ANALOG, GPIO_PUPD_NONE, GPIO1);
|
||||
gpio_mode_setup(GPIOA, GPIO_MODE_ANALOG, GPIO_PUPD_NONE, GPIO5);
|
||||
// ADC seems to take these no matter what?
|
||||
// rcc_periph_clock_enable(RCC_GPIOA);
|
||||
// rcc_periph_clock_enable(RCC_GPIOF);
|
||||
// gpio_mode_setup(GPIOA, GPIO_MODE_ANALOG, GPIO_PUPD_NONE, GPIO0);
|
||||
// gpio_mode_setup(GPIOF, GPIO_MODE_ANALOG, GPIO_PUPD_NONE, GPIO4);
|
||||
|
||||
adc_power_init();
|
||||
for (i = 0; i < 0x1000; i++) { /* need as much as 10 usecs for vreg */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue