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.
This commit is contained in:
Kiara Navarro 2021-07-18 19:31:28 -03:00
parent 14e2794826
commit 7e6de49721
No known key found for this signature in database
GPG Key ID: CDEFDCA3F6E04955
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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