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.cpp
- Revision:
- 42:52a92a8d2cc7
- Parent:
- 41:3e0623d81b9a
- Child:
- 43:c593a8b9688f
--- a/adc.cpp Fri Jan 30 06:59:19 2015 +0000 +++ b/adc.cpp Fri Jan 30 07:22:00 2015 +0000 @@ -2,6 +2,7 @@ #include "dma.h" DigitalOut blah(LED_BLUE); +DigitalOut craw(LED_GREEN); DigitalOut toggle(PTC16); void adc_init(PinName pin) @@ -85,14 +86,14 @@ void adc_start() { // reset DMA - //_dma.reset(); + dma.reset(); // set ADC to continuous mode ADC0_SC3 |= ADC_SC3_ADCO_MASK; ADC1_SC3 |= ADC_SC3_ADCO_MASK; // start ADC conversion (SW trigger) - BW_ADC_SC1n_ADCH(0, 0, kAdcChannel12); // This corresponds to starting an ADC conversion on channel 12 of ADC 0 - which is A0 (PTB2) + BW_ADC_SC1n_ADCH(0, 0, kAdcChannel13); // This corresponds to starting an ADC conversion on channel 12 of ADC 0 - which is A0 (PTB2) BW_ADC_SC1n_ADCH(1, 0, kAdcChannel14); // This corresponds to starting an ADC conversion on channel 14 of ADC 1 - which is A2 (PTB10) } @@ -103,7 +104,9 @@ void ADC0_IRQHandler() { //toggle = !toggle; + //craw = !craw; } void ADC1_IRQHandler() { //toggle = !toggle; + //blah = !blah; } \ No newline at end of file