mbed library sources
Dependents: frdm_kl05z_gpio_test
Fork of mbed-src by
Diff: targets/hal/TARGET_NXP/TARGET_LPC23XX/pwmout_api.c
- Revision:
- 23:8d50de55f208
- Parent:
- 13:0645d8841f51
- Child:
- 227:7bd0639b8911
--- a/targets/hal/TARGET_NXP/TARGET_LPC23XX/pwmout_api.c Fri Sep 13 14:22:58 2013 +0100 +++ b/targets/hal/TARGET_NXP/TARGET_LPC23XX/pwmout_api.c Mon Sep 16 16:15:04 2013 +0100 @@ -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;