Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Impedance_Fast_Circuitry by
Diff: adc.h
- Revision:
- 41:3e0623d81b9a
- Parent:
- 40:bd6d8c35e822
- Child:
- 42:52a92a8d2cc7
--- a/adc.h Fri Jan 30 06:16:39 2015 +0000 +++ b/adc.h Fri Jan 30 06:59:19 2015 +0000 @@ -1,10 +1,3 @@ -/* - * dma.h - * - * Created on: Nov 25, 2014 - * Author: Manuel Alejandro - */ - #ifndef ADC_H_ #define ADC_H_ @@ -17,15 +10,23 @@ #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 -//DigitalOut blah(LED_BLUE); -void analog_initialization(PinName pin, Serial &pc); -void start_adc(); -void stop_adc(); + + +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_ */ +#endif /* ADC_H_ */ \ No newline at end of file