From 247d6e54002fe0031e0359b332ec9ee27c424893 Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Wed, 31 Mar 2021 10:23:33 +0200 Subject: [PATCH] Removed left aligment of ADC samples in mic_test --- tests/platform/mic_test.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/platform/mic_test.c b/tests/platform/mic_test.c index 55c967c6..cd465b1f 100644 --- a/tests/platform/mic_test.c +++ b/tests/platform/mic_test.c @@ -25,10 +25,8 @@ #include static const char hexdigits[]="0123456789abcdef"; -void printUnsignedInt(uint16_t val) +void printUnsignedInt(uint16_t x) { - int16_t x = val >> 4; - char result[]="....\r"; for(int i=3;i>=0;i--) { @@ -113,7 +111,6 @@ int main() | ADC_CR2_EXTSEL_2 /* 0b0110 TIM2_TRGO trig. source */ | ADC_CR2_DDS /* Enable DMA data transfer */ | ADC_CR2_DMA - | ADC_CR2_ALIGN | ADC_CR2_ADON; /* Enable ADC */ while((DMA2_Stream0->CR & DMA_SxCR_EN) == 1)