sentral tester

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
awmiller
Date:
Fri May 20 17:23:07 2016 +0000
Parent:
0:6834f1402927
Commit message:
sentral tester

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 6834f1402927 -r 29e57acc058b main.cpp
--- a/main.cpp	Sat Jan 04 00:33:35 2014 +0000
+++ b/main.cpp	Fri May 20 17:23:07 2016 +0000
@@ -3,6 +3,8 @@
 #include "Sentral.h"
 #include "Test_Routines.h"
 
+#define EV_ALT 1
+
 typedef char* string;
 
 AnalogIn VDD_Check(p15);
@@ -14,8 +16,14 @@
 
 DigitalIn POWER(p22);
 
+#ifdef EV_ALT
+#if EV_ALT
+I2C master(p9,p10);
+#else
 I2C master(p28, p27);
 I2CSlave slave(p9,p10);
+#endif
+#endif
 
 Serial pc(USBTX,USBRX);
 
@@ -74,7 +82,10 @@
         led2 = led2 + 0.01;
         led3 = led3 + 0.01;
         led4 = led4 + 0.01;
-        
+       
+#ifdef EV_ALT
+#if EV_ALT
+#else 
         if(POWER==0)
         {
             pc.attach(NULL);
@@ -90,8 +101,11 @@
             pc.printf("MODULE POWER ENABLED\r\n");
             VDD_read_request();
         }
+ #endif
+ #endif       
+        }
+
         
-        }
     //find_PROM(master, EEPROM_ADDR);
     /*
     FILE *fp = fopen("/local/TEST.hex", "r");  // Open "out.txt" on the local file system for writing