record adc values and send them to another uprocessor

Dependencies:   BufferedSerial SDFileSystem mbed

Fork of SDFileSystem_HelloWorld by mbed official

ReadADC.h

Committer:
patmcna
Date:
2016-06-16
Revision:
4:0e2980186bed

File content as of revision 4:0e2980186bed:

#include "mbed.h"





/************************************************************************
* readADC will recieve an interrupt and store ADC data to an array
*
************************************************************************/
void readADC()
{
    //pc.printf("Start reading ADC...");
    for (int i = 0; i < ADCReadCount; i++)
    {
        squibCLT_array[i] = squibCLT_ADC.read();
        arrayCount++;
    }
    //pc.printf("Done\r\n");
}