Skip to content

Commit d68cd09

Browse files
Merge pull request #4944 from LMESTM/F1_AFIO_CLK
STM32: F1 GPIO: Enable AFIO clock
2 parents e4d0e12 + d4fa585 commit d68cd09

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

targets/TARGET_STM/TARGET_STM32F1/pin_device.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ extern const uint32_t ll_pin_defines[16];
3737

3838
static inline void stm_pin_DisconnectDebug(PinName pin)
3939
{
40+
// Enable AFIO clock
41+
__HAL_RCC_AFIO_CLK_ENABLE();
42+
4043
// Disconnect JTAG-DP + SW-DP signals.
4144
// Warning: Need to reconnect under reset
4245
if ((pin == PA_13) || (pin == PA_14)) {

0 commit comments

Comments
 (0)