808

Dependents:   Chromatograph_Mobile

Files at this revision

API Documentation at this revision

Comitter:
nikmaos
Date:
Fri Aug 14 14:15:34 2020 +0000
Parent:
1:54015254fc18
Commit message:
1408;

Changed in this revision

ads1248.cpp Show annotated file Show diff for this revision Revisions of this file
ads1248.h Show annotated file Show diff for this revision Revisions of this file
diff -r 54015254fc18 -r ccfbc827eb2c ads1248.cpp
--- a/ads1248.cpp	Tue Aug 11 19:13:08 2020 +0000
+++ b/ads1248.cpp	Fri Aug 14 14:15:34 2020 +0000
@@ -96,6 +96,7 @@
     ADS1248WriteRegister ( DS1248_REGISTER_FSC1,1, ads->FSC.FSC1);
     ADS1248WriteRegister ( DS1248_REGISTER_FSC2,1, ads->FSC.FSC2);
     
+    DS1248_CS = 0;
     SPI1MasterTransferByte(DS1248_SYNC_COMMAND);
     wait_us(1);
     DS1248_CS = 1;
diff -r 54015254fc18 -r ccfbc827eb2c ads1248.h
--- a/ads1248.h	Tue Aug 11 19:13:08 2020 +0000
+++ b/ads1248.h	Fri Aug 14 14:15:34 2020 +0000
@@ -2,9 +2,9 @@
 #define ADS1248_H
 #include "PerifConfig.h"
 
-    #define DS1248_CS                               Cs
-    #define DS1248_START                            Reset
-    #define DS1248_DRDY                             CrdyA
+    #define DS1248_CS                               ads1259_pin_CS
+    #define DS1248_START                            ads1259_pin_Start
+    #define DS1248_DRDY                             ads1259_pin_Drdy
         
     #define DS1248_WAKEUP_COMMAND                   0x00
     #define DS1248_SLEEP_COMMAND                    0x02