Jared Baxter
/
Impedance_Fast_Circuitry
Fork of DSP_200kHz by
adc.h
- Committer:
- timmey9
- Date:
- 2015-01-30
- Revision:
- 41:3e0623d81b9a
- Parent:
- 40:bd6d8c35e822
- Child:
- 42:52a92a8d2cc7
File content as of revision 41:3e0623d81b9a:
#ifndef ADC_H_ #define ADC_H_ #include "mbed.h" #include <stdio.h> // Analog sampling #include "PeripheralNames.h" #include "PeripheralPins.h" #include "fsl_adc_hal.h" #include "fsl_clock_manager.h" #include "fsl_dspi_hal.h" #include "AngleEncoder.h" #include "dma.h" #define MAX_FADC 6000000 #define SAMPLING_RATE 10 // In microseconds, so 10 us will be a sampling rate of 100 kHz void adc_start(); void adc_stop(); void adc_init(PinName pin); void ADC0_IRQHandler(); void ADC1_IRQHandler(); //Serial debug(USBTX,USBRX); //DigitalOut toggle; //DMA _dma; #endif /* ADC_H_ */