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-30
- Revision:
- 40:bd6d8c35e822
- Parent:
- 39:82dc3daecf32
- Child:
- 41:3e0623d81b9a
File content as of revision 40:bd6d8c35e822:
/* * 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 //DigitalOut blah(LED_BLUE); void analog_initialization(PinName pin, Serial &pc); void start_adc(); void stop_adc(); void ADC0_IRQHandler(); #endif /* ADC_H_ */