- fix F411 F334 systeminit when HSI used - portinout always read IDR regardless of port direction

Fork of mbed-src by mbed official

Revision:
332:e299ae530e63
Parent:
296:ec1b66a3d094
--- a/targets/hal/TARGET_STM/TARGET_STM32F407VG/port_api.c	Wed Sep 24 13:15:06 2014 +0100
+++ b/targets/hal/TARGET_STM/TARGET_STM32F407VG/port_api.c	Sat Sep 27 11:16:28 2014 +0000
@@ -87,11 +87,7 @@
 }
 
 int port_read(port_t *obj) {
-    if (obj->direction == PIN_OUTPUT) {
-        return (*obj->reg_out & obj->mask);
-    } else { // PIN_INPUT
-        return (*obj->reg_in & obj->mask);
-    }
+    return (*obj->reg_in & obj->mask); // always read IDR, regardless of pin direction
 }
 
 #endif