From 416ced6443b04238ff674b6304b22c92624369d0 Mon Sep 17 00:00:00 2001 From: "Sascha Schade (strongly-typed)" Date: Mon, 6 Mar 2023 08:41:46 +0100 Subject: [PATCH] [board] [stm32] Nucleo F103RB enable PB4 --- src/modm/board/nucleo_f103rb/board.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modm/board/nucleo_f103rb/board.hpp b/src/modm/board/nucleo_f103rb/board.hpp index cd001eb8bc..787be72758 100644 --- a/src/modm/board/nucleo_f103rb/board.hpp +++ b/src/modm/board/nucleo_f103rb/board.hpp @@ -120,6 +120,9 @@ initialize() stlink::Uart::initialize(); Button::setInput(); + + // Enable PB4 as GPIO + AFIO->MAPR |= AFIO_MAPR_SWJ_CFG_JTAGDISABLE; } /// @}