posilani dat
Dependencies: FatFileSystemCpp mbed PowerControl USBHostLite
Diff: main.cpp
- Revision:
- 14:6bd7d1fff6af
- Parent:
- 13:d00c8a6a2e8c
- Child:
- 15:baa2672a9b38
--- a/main.cpp Mon Jun 08 16:29:58 2015 +0000 +++ b/main.cpp Sun Aug 30 13:39:32 2015 +0000 @@ -20,6 +20,8 @@ * transmission (UART on faster reates seems to be unstable) */ #include "mbed.h" +#include "PowerControl.h" +#include "EthernetPowerControl.h" #include "L3GD20_init.h" #include "math.h" #include "stdint.h" @@ -232,6 +234,7 @@ FILE *fp; printf("Boot...\r\n"); + PHY_PowerDown(); // Disable ETH PHY to conserve power (about 40mA) initSensors(); // INIT GYRO Logger.SelectCRCMode(1); // I dont know / it was in example code