Skip to content

Commit

Permalink
[board] [stm32] Nucleo F103RB enable PB4
Browse files Browse the repository at this point in the history
  • Loading branch information
strongly-typed committed Mar 6, 2023
1 parent d982a85 commit 416ced6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modm/board/nucleo_f103rb/board.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ initialize()
stlink::Uart::initialize<SystemClock, 115200_Bd>();

Button::setInput();

// Enable PB4 as GPIO
AFIO->MAPR |= AFIO_MAPR_SWJ_CFG_JTAGDISABLE;
}
/// @}

Expand Down

0 comments on commit 416ced6

Please sign in to comment.