ADC for threaded program

Dependents:   LEX_Threaded_Programming MEMSPCR_Control_Program_AD_Logging_Demo_PCB MEMSPCR_Control_Program_AD_Logging_Sync MEMSPCR_Control_Program_AD_Logging_PWM ... more

Files at this revision

API Documentation at this revision

Comitter:
omatthews
Date:
Mon Aug 19 07:55:44 2019 +0000
Parent:
2:52a40eb59b06
Commit message:
10/08/2019

Changed in this revision

ADS8568_ADC.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 52a40eb59b06 -r 7c4fd26c696e ADS8568_ADC.cpp
--- a/ADS8568_ADC.cpp	Wed Jul 24 14:29:54 2019 +0000
+++ b/ADS8568_ADC.cpp	Mon Aug 19 07:55:44 2019 +0000
@@ -7,7 +7,7 @@
 ------------------------------------------------------------------------------*/
 
 #include "ADS8568_ADC.h"
-
+extern DigitalOut led_0;
 
     
 ADS8568_ADC::ADS8568_ADC(PinName mosi, PinName miso, PinName sclk, PinName ncs,PinName reset, PinName convA, PinName convB, PinName convC, PinName convD)
@@ -45,6 +45,7 @@
 void ADS8568_ADC::start_conversion(int channels)
 {
     //send convert signal to all channels
+
     converts = channels;
     wait_us(1);
     converts = 0;