mbed library sources

Dependents:   frdm_kl05z_gpio_test

Fork of mbed-src by mbed official

Revision:
19:398f4c622e1b
Parent:
13:0645d8841f51
Child:
227:7bd0639b8911
diff -r 692be3d4e4cc -r 398f4c622e1b targets/hal/TARGET_NXP/TARGET_LPC176X/pwmout_api.c
--- a/targets/hal/TARGET_NXP/TARGET_LPC176X/pwmout_api.c	Mon Aug 12 13:49:01 2013 +0300
+++ b/targets/hal/TARGET_NXP/TARGET_LPC176X/pwmout_api.c	Mon Aug 19 18:17:02 2013 +0300
@@ -57,7 +57,7 @@
 void pwmout_init(pwmout_t* obj, PinName pin) {
     // determine the channel
     PWMName pwm = (PWMName)pinmap_peripheral(pin, PinMap_PWM);
-    if (pwm == (uint32_t)NC)
+    if (pwm == (PWMName)NC)
         error("PwmOut pin mapping failed");
     
     obj->pwm = pwm;