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: Seeed_Barometer_Sensor_Example
Fork of mbed-src by
Diff: targets/hal/TARGET_NXP/TARGET_LPC408X/pwmout_api.c
- Revision:
- 29:6ac4027eff2b
- Parent:
- 15:4892fe388435
- Child:
- 227:7bd0639b8911
diff -r 4b07695ba953 -r 6ac4027eff2b targets/hal/TARGET_NXP/TARGET_LPC408X/pwmout_api.c
--- a/targets/hal/TARGET_NXP/TARGET_LPC408X/pwmout_api.c Fri Sep 20 10:00:04 2013 +0100
+++ b/targets/hal/TARGET_NXP/TARGET_LPC408X/pwmout_api.c Mon Sep 23 11:30:07 2013 +0100
@@ -66,7 +66,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->channel = pwm;
