From 50ab6aa0dc85b9f56991434df2c40c10caec08c8 Mon Sep 17 00:00:00 2001 From: erikkaashoek Date: Fri, 31 Jul 2020 17:30:37 +0200 Subject: [PATCH] Lever left repaired --- NANOVNA_STM32_F072/board.h | 4 ++-- sa_core.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/NANOVNA_STM32_F072/board.h b/NANOVNA_STM32_F072/board.h index 48a7507..b0a3c1a 100644 --- a/NANOVNA_STM32_F072/board.h +++ b/NANOVNA_STM32_F072/board.h @@ -123,7 +123,7 @@ * PA14 - SWCLK (alternate 0). */ #define VAL_GPIOA_MODER (PIN_MODE_ANALOG(0U) | \ - PIN_MODE_ANALOG(1U) | \ + PIN_MODE_INPUT(1U) | \ PIN_MODE_INPUT(2U) | \ PIN_MODE_INPUT(3U) | \ PIN_MODE_INPUT(4U) | \ @@ -171,7 +171,7 @@ PIN_OSPEED_100M(GPIOA_JTCK) | \ PIN_OSPEED_100M(GPIOA_LCD_RESET)) #define VAL_GPIOA_PUPDR ( PIN_PUPDR_FLOATING(0) | \ - PIN_PUPDR_FLOATING(1) | \ + PIN_PUPDR_PULLDOWN(1) | \ PIN_PUPDR_PULLDOWN(2) | \ PIN_PUPDR_PULLDOWN(3) | \ PIN_PUPDR_PULLDOWN(4) | \ diff --git a/sa_core.c b/sa_core.c index 8644023..8f3deec 100644 --- a/sa_core.c +++ b/sa_core.c @@ -2135,7 +2135,7 @@ sweep_again: // stay in sweep loop when output mo } // } while (MODE_OUTPUT(setting.mode) && setting.modulation != MO_NONE); // Never exit sweep loop while in output mode with modulation -#if 1 +#if 0 extern int16_t adc_buf_read(uint32_t chsel, uint16_t *result, uint32_t count); trace[TRACE_STORED].enabled = true; adc_buf_read(ADC_CHSELR_CHSEL4, spi_buffer, 290);