mbed library sources modified for open wear
Dependents: openwear-lifelogger-example
Fork of mbed-src by
Diff: targets/hal/TARGET_NXP/TARGET_LPC176X/pwmout_api.c
- Revision:
- 19:398f4c622e1b
- Parent:
- 13:0645d8841f51
- Child:
- 227:7bd0639b8911
--- 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;