Merge pull request #42 from sophiekovalevsky/swd

fw/hardware: disable debug pins
This commit is contained in:
jankae 2021-07-19 14:17:54 +02:00 committed by GitHub
commit 57f7a4baea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,7 @@ void HW::Work() {
} }
bool HW::Init() { bool HW::Init() {
#ifdef USE_DEBUG_PINS #if USE_DEBUG_PINS
// initialize debug pins // initialize debug pins
GPIO_InitTypeDef gpio; GPIO_InitTypeDef gpio;
gpio.Pin = DEBUG1_PIN; gpio.Pin = DEBUG1_PIN;

View File

@ -7,9 +7,9 @@
#include "max2871.hpp" #include "max2871.hpp"
#include "Si5351C.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_GPIO GPIOA
#define DEBUG1_PIN GPIO_PIN_13 #define DEBUG1_PIN GPIO_PIN_13
#define DEBUG2_GPIO GPIOA #define DEBUG2_GPIO GPIOA