From 64122b09c039e0969cc2ac3cbab9766d4b939519 Mon Sep 17 00:00:00 2001 From: lorne-maxim <65424047+lorne-maxim@users.noreply.github.com> Date: Mon, 29 Apr 2024 10:29:50 -0500 Subject: [PATCH] Modified GPIO code to prevent inadvertent low pulse when switching to Hi-Z mode. --- source/hic_hal/maxim/max32625/DAP_config.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/source/hic_hal/maxim/max32625/DAP_config.h b/source/hic_hal/maxim/max32625/DAP_config.h index 5969698189..d48c3b6110 100644 --- a/source/hic_hal/maxim/max32625/DAP_config.h +++ b/source/hic_hal/maxim/max32625/DAP_config.h @@ -236,15 +236,10 @@ Disables the DAP Hardware I/O pins which configures: */ __STATIC_INLINE void PORT_OFF (void) { - // Disable weak pullup in high-z output mode - MXC_GPIO_CLRBIT(swclk_port, swclk_pin); - MXC_GPIO_CLRBIT(swdio_port, swdio_pin); - MXC_GPIO_CLRBIT(nreset_port, nreset_pin); - // High-z output mode - MXC_GPIO_SETMODE(swclk_port, swclk_pin, MXC_V_GPIO_OUT_MODE_HIGH_Z_WEAK_PULLUP); - MXC_GPIO_SETMODE(swdio_port, swdio_pin, MXC_V_GPIO_OUT_MODE_HIGH_Z_WEAK_PULLUP); - MXC_GPIO_SETMODE(nreset_port, nreset_pin, MXC_V_GPIO_OUT_MODE_HIGH_Z_WEAK_PULLUP); + MXC_GPIO_SETMODE(swclk_port, swclk_pin, MXC_V_GPIO_OUT_MODE_NORMAL_HIGH_Z); + MXC_GPIO_SETMODE(swdio_port, swdio_pin, MXC_V_GPIO_OUT_MODE_NORMAL_HIGH_Z); + MXC_GPIO_SETMODE(nreset_port, nreset_pin, MXC_V_GPIO_OUT_MODE_NORMAL_HIGH_Z); } // SWCLK/TCK I/O pin -------------------------------------