Projet S5 Lecture de l'accelerometre avec interruption

Dependencies:   mbed PowerControl

Fork of Projet_S5 by Jonathan Tousignant

Revision:
13:d25fe10677e8
Parent:
12:16390cea4420
Child:
14:67f44035ef61
--- a/main.cpp	Thu Apr 10 18:39:16 2014 +0000
+++ b/main.cpp	Sun Apr 13 18:54:06 2014 +0000
@@ -3,6 +3,8 @@
 #include "interrupt.h"
 #include <iostream>
 #include <fstream>
+#include "PowerControl/PowerControl.h"
+#include "PowerControl/EthernetPowerControl.h"
 
 Serial pc(USBTX, USBRX);
 DigitalOut led1(LED1);
@@ -137,6 +139,9 @@
     string line;
     string filename = "/local/config.txt";
     
+    PHY_PowerDown(); //power down ethernet interface 175mw
+    
+    
     ifstream myfile(filename.c_str());
     
     if (myfile.is_open())
@@ -163,6 +168,7 @@
         
         while(true)
         {
+           Sleep();
         }
     }