From 59dcbaf17799c8409aabd2061179bf17e8d4b77a Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Tue, 2 Mar 2021 19:46:20 +0100 Subject: [PATCH] Remove debug printfs --- firmware/adc.c | 8 -------- firmware/main.c | 4 ++-- firmware/spi2812.c | 2 -- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/firmware/adc.c b/firmware/adc.c index 35bed0d..319a7f8 100644 --- a/firmware/adc.c +++ b/firmware/adc.c @@ -13,8 +13,6 @@ void adc_init() ADC_CommonInitTypeDef ADC_CommonInitStruct; ADC_InitTypeDef ADC_InitStructure; GPIO_InitTypeDef GPIO_InitStruct; - - printf("ADC init\r\n"); // Enable Clocks RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOA, ENABLE); @@ -127,12 +125,6 @@ void adc_init() // Turn it all on ADC_Cmd(ADC1, ENABLE); ADC_DMACmd(ADC1, ENABLE); - - printf("adc init done.\r\n"); - printf("ADC CR1: %08x, CR2: %08x\r\n", ADC1->CR1, ADC1->CR2); - printf("ADC SQR1: %08x, SQR3: %08x\r\n", ADC1->SQR1, ADC1->SQR3); - printf("DMA2 S0CR: %08x\r\n", ADC_RX_DMA_STREAM->CR); - printf("ADC init complete.\r\n"); } void DMA2_Stream0_IRQHandler() diff --git a/firmware/main.c b/firmware/main.c index be0bbe0..9be3980 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -124,8 +124,8 @@ int main(void) adc_init(); printf("\r\nThis is Sabik-CPU, commit %s.\r\n", REVISION); - printf("Operating at %.3fMHz\r\n", fv ); - + printf("Operating at %.3fMHz.\r\n", fv ); + int this_samp = 0; int wf = 0; diff --git a/firmware/spi2812.c b/firmware/spi2812.c index 7fc2f27..bcc4e2f 100644 --- a/firmware/spi2812.c +++ b/firmware/spi2812.c @@ -132,8 +132,6 @@ void InitSPI2812() DMA_InitTypeDef dma_init_struct; GPIO_InitTypeDef GPIO_InitStructure; NVIC_InitTypeDef nvic_init_struct; - - printf("Init SPI2812: sizeof(MyBuffer)=%d\r\n", sizeof(MyBuffer)); #ifdef STM32F30X