Jared Baxter / Mbed 2 deprecated Impedance_Fast_Circuitry_print_V_I

Dependencies:   mbed-dsp mbed

Fork of Impedance_Fast_Circuitry by Jared Baxter

Revision:
44:41c262caf898
Parent:
43:c593a8b9688f
Child:
45:d591d138cdeb
--- a/adc.cpp	Fri Jan 30 08:14:36 2015 +0000
+++ b/adc.cpp	Fri Jan 30 14:56:58 2015 +0000
@@ -1,6 +1,11 @@
 #include "adc.h"
 #include "dma.h"
-
+/*
+TODO:   remove interrupt handlers
+        add calibration
+        change clock speed (possible with PIT)
+        
+*/
 DigitalOut blah(LED_BLUE);
 DigitalOut craw(LED_GREEN);
 DigitalOut toggle(PTC16);
@@ -10,16 +15,6 @@
     // Turn on the ADC0 and ADC1 clocks
     SIM_SCGC6 |= SIM_SCGC6_ADC0_MASK;
     SIM_SCGC3 |= SIM_SCGC3_ADC1_MASK;
-       
-    /*
-    // Configure System Integration Module for defaults as far as ADC
-    SIM_SOPT7 &= ~(SIM_SOPT7_ADC1ALTTRGEN_MASK  | // selects PDB not ALT trigger
-                SIM_SOPT7_ADC1PRETRGSEL_MASK |
-                SIM_SOPT7_ADC0ALTTRGEN_MASK  | // selects PDB not ALT trigger
-                SIM_SOPT7_ADC0ALTTRGEN_MASK) ;
-    SIM_SOPT7 = SIM_SOPT7_ADC0TRGSEL(0);       // applies only in case of ALT trigger, in which case PDB external pin input trigger for ADC
-    SIM_SOPT7 = SIM_SOPT7_ADC1TRGSEL(0);       // same for both ADCs
-    */
     
     // enable interrupt
     ADC0_SC1A |= ADC_SC1_AIEN_MASK;