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
Diff: ADS8568_ADC.cpp
- Revision:
- 3:7c4fd26c696e
- Parent:
- 2:52a40eb59b06
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;