defines changed from TARGET_LPC1768 to TARGET_LPC176X to support LPC1769 target
Fork of FastAnalogIn by
Diff: FastAnalogIn_KLXX_K20D50M.cpp
- Revision:
- 11:234c5cd2b8de
- Parent:
- 9:31184aa1449c
diff -r afc3b84dbbd6 -r 234c5cd2b8de FastAnalogIn_KLXX_K20D50M.cpp --- a/FastAnalogIn_KLXX_K20D50M.cpp Tue Nov 04 17:53:25 2014 +0000 +++ b/FastAnalogIn_KLXX_K20D50M.cpp Sat Dec 19 06:36:25 2015 +0000 @@ -24,6 +24,9 @@ FastAnalogIn::FastAnalogIn(PinName pin, bool enabled) { + if (pin == NC) + return; + ADCnumber = (ADCName)pinmap_peripheral(pin, PinMap_ADC); if (ADCnumber == (ADCName)NC) { error("ADC pin mapping failed");