Mbed Library with modified HSE_Startup timeout

Fork of mbed-src by mbed official

Revision:
227:7bd0639b8911
Parent:
174:8bb9f3a33240
Child:
250:a49055e7a707
diff -r b062af740e40 -r 7bd0639b8911 targets/hal/TARGET_NXP/TARGET_LPC11U6X/pinmap.c
--- a/targets/hal/TARGET_NXP/TARGET_LPC11U6X/pinmap.c	Wed Jun 11 09:45:09 2014 +0100
+++ b/targets/hal/TARGET_NXP/TARGET_LPC11U6X/pinmap.c	Wed Jun 11 16:00:09 2014 +0100
@@ -13,15 +13,12 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+#include "mbed_assert.h"
 #include "pinmap.h"
 #include "error.h"
 
 void pin_function(PinName pin, int function) {
-    if (pin == (uint32_t)NC)
-    {
-        return;
-    }
-
+    MBED_ASSERT(pin != (PinName)NC);
     __IO uint32_t *reg = (__IO uint32_t*)(LPC_IOCON_BASE + (pin & 0x1FF));
 
     // pin function bits: [2:0] -> 111 = (0x7)
@@ -29,11 +26,7 @@
 }
 
 void pin_mode(PinName pin, PinMode mode) {
-    if (pin == (uint32_t)NC)
-    {
-        return;
-    }
-    
+    MBED_ASSERT(pin != (PinName)NC);
     if ((pin == P0_4) || (pin == P0_5)) {
         // The true open-drain pins PIO0_4 and PIO0_5 can be configured for different I2C-bus speeds.
         return;