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
adc.h
- Committer:
- timmey9
- Date:
- 2015-01-29
- Revision:
- 39:82dc3daecf32
- Child:
- 40:bd6d8c35e822
File content as of revision 39:82dc3daecf32:
/* * dma.h * * Created on: Nov 25, 2014 * Author: Manuel Alejandro */ #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" #define MAX_FADC 6000000 #define SAMPLING_RATE 10 // In microseconds, so 10 us will be a sampling rate of 100 kHz #define TOTAL_SAMPLES 3 // originally 30000 for 0.3 ms of sampling. void analog_initialization(PinName pin, Serial &pc); #endif /* ADC_H_ */