mbed library sources. Supersedes mbed-src.

Fork of mbed-dev by mbed official

Revision:
173:e131a1973e81
Parent:
160:d5399cc887bb
diff -r 7d866c31b3c5 -r e131a1973e81 targets/TARGET_STM/TARGET_STM32F1/pin_device.h
--- a/targets/TARGET_STM/TARGET_STM32F1/pin_device.h	Thu Aug 31 17:27:04 2017 +0100
+++ b/targets/TARGET_STM/TARGET_STM32F1/pin_device.h	Fri Sep 15 14:59:18 2017 +0100
@@ -37,6 +37,9 @@
 
 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)) {