Added code to enable pull-up resistor on mic analog input pin in mic_test.c
This commit is contained in:
parent
f7653bfe04
commit
586b60b358
|
|
@ -51,6 +51,9 @@ int main()
|
||||||
gpio_setMode(MIC_PWR, OUTPUT);
|
gpio_setMode(MIC_PWR, OUTPUT);
|
||||||
gpio_setPin(MIC_PWR);
|
gpio_setPin(MIC_PWR);
|
||||||
|
|
||||||
|
/* Enable pull-up resistor on PA3 (AIN_MIC)
|
||||||
|
GPIOA->PUPDR |= 1 << 6; */
|
||||||
|
|
||||||
delayMs(3000);
|
delayMs(3000);
|
||||||
|
|
||||||
RCC->APB2ENR |= RCC_APB2ENR_ADC1EN;
|
RCC->APB2ENR |= RCC_APB2ENR_ADC1EN;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue