Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: SANFAN_read_analog_value nucleo-wdg Nucleo_sleep_copy
Fork of mbed-src by
Diff: targets/hal/TARGET_NXP/TARGET_LPC23XX/pinmap.c
- Revision:
- 23:8d50de55f208
- Parent:
- 13:0645d8841f51
- Child:
- 227:7bd0639b8911
diff -r dbd009839d5e -r 8d50de55f208 targets/hal/TARGET_NXP/TARGET_LPC23XX/pinmap.c
--- a/targets/hal/TARGET_NXP/TARGET_LPC23XX/pinmap.c	Fri Sep 13 14:22:58 2013 +0100
+++ b/targets/hal/TARGET_NXP/TARGET_LPC23XX/pinmap.c	Mon Sep 16 16:15:04 2013 +0100
@@ -17,7 +17,7 @@
 #include "error.h"
 
 void pin_function(PinName pin, int function) {
-    if (pin == (uint32_t)NC) return;
+    if (pin == (PinName)NC) return;
     
     uint32_t pin_number = (uint32_t)pin - (uint32_t)P0_0;
     int index = pin_number >> 4;
@@ -28,7 +28,7 @@
 }
 
 void pin_mode(PinName pin, PinMode mode) {
-    if (pin == (uint32_t)NC) { return; }
+    if (pin == (PinName)NC) { return; }
     
     uint32_t pin_number = (uint32_t)pin - (uint32_t)P0_0;
     int index = pin_number >> 5;
    