From 7e6de497218cc1d87f75d21907fc36b7ff1aa64c Mon Sep 17 00:00:00 2001 From: Kiara Navarro Date: Sun, 18 Jul 2021 19:31:28 -0300 Subject: [PATCH] fw/hardware: disable debug pins When USE_DEBUG_PINS is enabled and debug session is open, their pin initialization makes debug probe to lost session. As these pins are not used, let's disable it by default. --- Software/VNA_embedded/Application/Hardware.cpp | 2 +- Software/VNA_embedded/Application/Hardware.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Software/VNA_embedded/Application/Hardware.cpp b/Software/VNA_embedded/Application/Hardware.cpp index 3bd9517..bfecbcc 100644 --- a/Software/VNA_embedded/Application/Hardware.cpp +++ b/Software/VNA_embedded/Application/Hardware.cpp @@ -75,7 +75,7 @@ void HW::Work() { } bool HW::Init() { -#ifdef USE_DEBUG_PINS +#if USE_DEBUG_PINS // initialize debug pins GPIO_InitTypeDef gpio; gpio.Pin = DEBUG1_PIN; diff --git a/Software/VNA_embedded/Application/Hardware.hpp b/Software/VNA_embedded/Application/Hardware.hpp index 6da89e9..5ebd65e 100644 --- a/Software/VNA_embedded/Application/Hardware.hpp +++ b/Software/VNA_embedded/Application/Hardware.hpp @@ -7,9 +7,9 @@ #include "max2871.hpp" #include "Si5351C.hpp" -#define USE_DEBUG_PINS +#define USE_DEBUG_PINS 0 -#ifdef USE_DEBUG_PINS +#if USE_DEBUG_PINS #define DEBUG1_GPIO GPIOA #define DEBUG1_PIN GPIO_PIN_13 #define DEBUG2_GPIO GPIOA