wimbeaumont Project / S_SCTRL_SMlib

Dependents:   S_SCTRL_e_test SPItest sscm

Files at this revision

API Documentation at this revision

Comitter:
wbeaumont
Date:
Sun Sep 07 18:55:47 2014 +0000
Parent:
2:475caee897ec
Child:
5:b527df9432c3
Commit message:
change names of adc cs lines

Changed in this revision

S_SCTRL_SM1_hwfunct.cpp Show annotated file Show diff for this revision Revisions of this file
solid_sctrl_def.h Show annotated file Show diff for this revision Revisions of this file
--- a/S_SCTRL_SM1_hwfunct.cpp	Sun Sep 07 15:31:42 2014 +0000
+++ b/S_SCTRL_SM1_hwfunct.cpp	Sun Sep 07 18:55:47 2014 +0000
@@ -13,8 +13,8 @@
 hwlines->sclk[0] = new DigitalOut(SCLK);
 hwlines->direction[0] = new DigitalOut(DIRECTION);
 hwlines->stio_mo[0] = new DigitalOut(STIO_MO);
-hwlines->csb1_1[0] = new DigitalOut(ADC1_CSN);
-hwlines->csb2_1[0] = new DigitalOut(ADC2_CSN);
+hwlines->csb1[0] = new DigitalOut(ADC1_CSN);
+hwlines->csb2[0] = new DigitalOut(ADC2_CSN);
 
 
 
@@ -37,8 +37,8 @@
 hwlines->sclk[1] = new DigitalOut(SCLK_2);
 hwlines->direction[1] = new DigitalOut(DIRECTION2);
 hwlines->stio_mo[1] = new DigitalOut(STIO2_MO);
-hwlines->csb1_1[1] = new DigitalOut(ADC1_2_CSN);
-hwlines->csb2_1[1] = new DigitalOut(ADC2_2_CSN);
+hwlines->csb1[1] = new DigitalOut(ADC1_2_CSN);
+hwlines->csb2[1] = new DigitalOut(ADC2_2_CSN);
 
 // SPI pins
 hwlines->mosi[1] = new DigitalOut(MOSI_2); 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/solid_sctrl_def.h	Sun Sep 07 18:55:47 2014 +0000
@@ -0,0 +1,9 @@
+#ifndef solid_sctrl_def_H
+#define solid_sctrl_def_H
+
+
+typedef unsigned int  u32;
+typedef unsigned short int  u16;
+typedef unsigned char u8;
+
+#endif;
\ No newline at end of file