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