Class similar to AnalogIn that uses burst mode to run continious background conversions so when the input is read, the last value can immediatly be returned.
Fork of FastAnalogIn by
Obsolete!
Has been already merged with Erik's original repository => take the original!
- Added support for LPC4088.
- Fixed linker error (missing definition of static member "channel_usage")
Diff: FastAnalogIn_KLXX.cpp
- Revision:
- 5:55274430c8df
- Parent:
- 3:a9b753c25073
diff -r cd84739f7640 -r 55274430c8df FastAnalogIn_KLXX.cpp --- a/FastAnalogIn_KLXX.cpp Sun Apr 20 16:23:19 2014 +0000 +++ b/FastAnalogIn_KLXX.cpp Mon Apr 21 07:17:39 2014 +0000 @@ -6,6 +6,8 @@ #define MAX_FADC 6000000 #define CHANNELS_A_SHIFT 5 +int FastAnalogIn::channel_usage[8] = {0,0,0,0,0,0,0,0}; + FastAnalogIn::FastAnalogIn(PinName pin, bool enabled) { ADCnumber = (ADCName)pinmap_peripheral(pin, PinMap_ADC);