From 3651bb616113d83919c266f08397dc2b4afe1040 Mon Sep 17 00:00:00 2001 From: cfif Date: Fri, 3 Jul 2026 11:14:00 +0300 Subject: [PATCH] =?UTF-8?q?=D0=90=D0=B2=D1=82=D0=BE=D0=BE=D0=BF=D1=80?= =?UTF-8?q?=D0=B5=D0=B4=D0=B5=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20JTAG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- APP/main.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/APP/main.c b/APP/main.c index 6e3a6a2..f15c00a 100644 --- a/APP/main.c +++ b/APP/main.c @@ -108,17 +108,14 @@ static void Boot2App(void) { } -static bool is_jtag_debug_active(void) { - // Проверяем, включена ли отладка - return (CoreDebug->DHCSR & CoreDebug_DHCSR_C_DEBUGEN_Msk) != 0; -} +#define CHECK_JTAG_DEBUG_ACTIVE ((CoreDebug->DHCSR & CoreDebug_DHCSR_C_DEBUGEN_Msk) != 0) uint64_t NumberBank = 0; int main(void) { Bsp_CLOCK_Init(); - if (is_jtag_debug_active()) { + if (CHECK_JTAG_DEBUG_ACTIVE) { D_bInternalFlashPage_Clear(0x04000000, NULL, NULL); }