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@51:43143a3fc2d7, 2015-01-31 (annotated)
- Committer:
- timmey9
- Date:
- Sat Jan 31 20:17:58 2015 +0000
- Revision:
- 51:43143a3fc2d7
- Parent:
- 45:d591d138cdeb
Cleaned up the code a little bit.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
timmey9 | 39:82dc3daecf32 | 1 | #ifndef ADC_H_ |
timmey9 | 39:82dc3daecf32 | 2 | #define ADC_H_ |
timmey9 | 39:82dc3daecf32 | 3 | |
timmey9 | 39:82dc3daecf32 | 4 | #include "mbed.h" |
timmey9 | 41:3e0623d81b9a | 5 | #include "dma.h" |
timmey9 | 39:82dc3daecf32 | 6 | |
timmey9 | 39:82dc3daecf32 | 7 | |
timmey9 | 45:d591d138cdeb | 8 | /*** |
timmey9 | 51:43143a3fc2d7 | 9 | * Initializes the ADC to 16-bit single-ended, hardware triggered |
timmey9 | 45:d591d138cdeb | 10 | * with DMA enabled. |
timmey9 | 45:d591d138cdeb | 11 | **/ |
timmey9 | 45:d591d138cdeb | 12 | void adc_init(); |
timmey9 | 45:d591d138cdeb | 13 | |
timmey9 | 45:d591d138cdeb | 14 | /*** |
timmey9 | 51:43143a3fc2d7 | 15 | * Toggles PTA0 when conversion completes |
timmey9 | 45:d591d138cdeb | 16 | **/ |
timmey9 | 40:bd6d8c35e822 | 17 | void ADC0_IRQHandler(); |
timmey9 | 51:43143a3fc2d7 | 18 | |
timmey9 | 51:43143a3fc2d7 | 19 | |
timmey9 | 51:43143a3fc2d7 | 20 | |
timmey9 | 51:43143a3fc2d7 | 21 | //void adc_single_sample(); |
timmey9 | 51:43143a3fc2d7 | 22 | //void adc_start(); |
timmey9 | 51:43143a3fc2d7 | 23 | //void adc_stop(); |
timmey9 | 39:82dc3daecf32 | 24 | |
timmey9 | 41:3e0623d81b9a | 25 | #endif /* ADC_H_ */ |