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.

Dependents:   KL25Z_FFT_Demo test_armmath KL25Z_FFT_Demo_tony KL25Z_FFT_Demo_tony ... more

This pull request has been accepted and merged in by Erik -

Added support for LPC4088

Hi Erik and Frank, I have just added an implementation for the LPC4088 platform to FastAnalogIn, by simply cloning the LPC1768 implementation and applying all diffs that I have spotted in a comparison of the official "analogin_api.c" implementations for the two platforms (pin map, clock and some magic stuff in the constructor). Additionally I have had to add an ugly wait prior to the LPC4088's ADC setup in the constructor, to get the stuff running. A simple test - sampling an audio signal at 40kHz with FastAnalogIn and sending it via AnalogOut to an speaker - works well with the LPC4088. I have also added following definition for the static "channel_usage" array to all implementations: "int FastAnalogIn::channel_usage[8] = {0,0,0,0,0,0,0,0};" This was needed to link applications for the LPC platforms. I guess the same applies for the KLXX platform (Don't have a build button for that one). Cheers, Helmut

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. AnalogIn, burst, fast