mbed library sources. Supersedes mbed-src. Fixed broken STM32F1xx RTC on rtc_api.c

Dependents:   Nucleo_F103RB_RTC_battery_bkup_pwr_off_okay

Fork of mbed-dev by mbed official

Revision:
165:e614a9f1c9e2
Parent:
149:156823d33999
diff -r 289d4deac6e4 -r e614a9f1c9e2 targets/TARGET_WIZNET/TARGET_W7500x/pinmap.c
--- a/targets/TARGET_WIZNET/TARGET_W7500x/pinmap.c	Wed May 10 12:06:41 2017 +0100
+++ b/targets/TARGET_WIZNET/TARGET_W7500x/pinmap.c	Fri May 26 12:39:01 2017 +0100
@@ -117,17 +117,29 @@
     uint32_t port_num = WIZ_PORT(pin);
     uint32_t pin_num = WIZ_PIN_NUM(pin);
 
-    switch(port_num)    {
+    switch(port_num) {
         case PortA:
+            if(pupd != 0) {
+                PA_PCR->Port[pin_num] &= 0xFFFFFFFC;
+            }
             PA_PCR->Port[pin_num] |= pupd;
             break;
         case PortB:
+            if(pupd != 0) {
+                PB_PCR->Port[pin_num] &= 0xFFFFFFFC;
+            }
             PB_PCR->Port[pin_num] |= pupd;
             break;
         case PortC:
+            if(pupd != 0) {
+                PC_PCR->Port[pin_num] &= 0xFFFFFFFC;
+            }
             PC_PCR->Port[pin_num] |= pupd;
             break;
         case PortD:
+            if(pupd != 0) {
+                PD_PCR->Port[pin_num] &= 0xFFFFFFFC;
+            }
             PD_PCR->Port[pin_num] |= pupd;
             break;
         default: