Merge pull request #4944 from LMESTM/F1_AFIO_CLK

STM32: F1 GPIO: Enable AFIO clock
pull/4964/merge
Jimmy Brisson 2017-08-29 13:45:27 -05:00 committed by GitHub
commit d68cd09c63
1 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,9 @@ extern const uint32_t ll_pin_defines[16];
static inline void stm_pin_DisconnectDebug(PinName pin)
{
// Enable AFIO clock
__HAL_RCC_AFIO_CLK_ENABLE();
// Disconnect JTAG-DP + SW-DP signals.
// Warning: Need to reconnect under reset
if ((pin == PA_13) || (pin == PA_14)) {