Implemented first Hangar-Service

Dependencies:   CalibrateMagneto QuaternionMath

Fork of SML2 by TobyRich GmbH

Revision:
33:bd56fc8aeb0a
Parent:
32:d37447aec6b4
Child:
46:fd5a62296b12
--- a/PowerAwareI2C.h	Mon May 04 15:16:57 2015 +0000
+++ b/PowerAwareI2C.h	Tue May 05 09:59:11 2015 +0000
@@ -13,14 +13,14 @@
     /// Power on the I2C peripheral
     void powerOn()
     {
-        //_i2c.i2c->ENABLE = (TWI_ENABLE_ENABLE_Enabled << TWI_ENABLE_ENABLE_Pos);
+        _i2c.i2c->ENABLE = (TWI_ENABLE_ENABLE_Enabled << TWI_ENABLE_ENABLE_Pos);
     }
     
     /// Power off the I2C peripheral     
     void powerOff()
     {
-        //_i2c.i2c->ENABLE = TWI_ENABLE_ENABLE_Disabled << TWI_ENABLE_ENABLE_Pos;
-        //_i2c.i2c->POWER  = 0;
+        _i2c.i2c->ENABLE = TWI_ENABLE_ENABLE_Disabled << TWI_ENABLE_ENABLE_Pos;
+        _i2c.i2c->POWER  = 0;
     }
 };