Adds Balancing function (on the top of SPI_I2C_Parser.cpp) and changes main function adding a test case for balancing to show that it is working as intended.

Dependencies:   CUER_CAN mbed

Fork of BMS_BMUCore_cellvoltage_Mrinank by Mrinank Sharma

Revision:
7:fbe8e07fe96e
Parent:
6:91b54ccbdf2d
Child:
8:2506aef0c8db
--- a/main.cpp	Thu Sep 01 15:21:15 2016 +0000
+++ b/main.cpp	Mon Sep 05 19:50:47 2016 +0000
@@ -130,14 +130,14 @@
     //spi.frequency(spiBitrate);
     uint8_t configReg [1][8];
     
-    wake_LTC6804();//ensures CMU's are in ready state and wakes it up from low power mode
+   
     LTC6804_init(MD_FAST, DCP_DISABLED, CELL_CH_ALL, AUX_CH_VREF2);
     
     while(-1) {
+    wake_LTC6804();//ensures CMU's are in ready state and wakes it up from low power mode
     LTC6804_rdcfg(1, configReg);
-    wait(0.5);
+    wait(5);
     }
-    return 0;
 }