From 29a00aa57a194e2e10b39933520f86650f0fcd21 Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Wed, 18 Aug 2021 10:33:05 +0200 Subject: [PATCH] Debug - Add Debug pin to NucleoH743 target. --- src/main/target/NUCLEOH743/target.c | 6 ++++++ src/main/target/NUCLEOH743/target.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/src/main/target/NUCLEOH743/target.c b/src/main/target/NUCLEOH743/target.c index bd81f68f4..0ea395576 100644 --- a/src/main/target/NUCLEOH743/target.c +++ b/src/main/target/NUCLEOH743/target.c @@ -27,6 +27,8 @@ #include "drivers/timer.h" #include "drivers/timer_def.h" +#include "build/debug_pin.h" + const timerHardware_t timerHardware[USABLE_TIMER_CHANNEL_COUNT] = { // DEF_TIM(TIM2, CH2, PB3, TIM_USE_LED, 0, 7, 0 ), // SPI1_SCK DEF_TIM(TIM12, CH2, PB15, TIM_USE_LED, 0, 0, 0 ), @@ -52,3 +54,7 @@ const timerHardware_t timerHardware[USABLE_TIMER_CHANNEL_COUNT] = { // DEF_TIM(TIM4, CH4, PB9, TIM_USE_MOTOR, 0, 0, 0 ), // I2C1 // DEF_TIM(TIM9, CH2, PE6, TIM_USE_MOTOR, 0, 0, 0 ), }; + +dbgPin_t dbgPins[DEBUG_PIN_COUNT] = { + { .tag = IO_TAG(PG1) }, +}; diff --git a/src/main/target/NUCLEOH743/target.h b/src/main/target/NUCLEOH743/target.h index 0d421ee61..422f20080 100644 --- a/src/main/target/NUCLEOH743/target.h +++ b/src/main/target/NUCLEOH743/target.h @@ -25,6 +25,9 @@ #define USE_TARGET_CONFIG +#define USE_DEBUG_PIN +#define DEBUG_PIN_COUNT 1 + #define LED0_PIN PB0 #define LED1_PIN PB7 // PE1 on NUCLEO-H743ZI2 (may collide with UART8_TX) //#define LED2_PIN PB14 // SDMMC2_D0 -- 2.11.4.GIT