From 586b60b35809d7cbfe95710528c60bdac7ca8912 Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Mon, 29 Mar 2021 21:41:20 +0200 Subject: [PATCH] Added code to enable pull-up resistor on mic analog input pin in mic_test.c --- tests/platform/mic_test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/platform/mic_test.c b/tests/platform/mic_test.c index d68f976c..55c967c6 100644 --- a/tests/platform/mic_test.c +++ b/tests/platform/mic_test.c @@ -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;