#include "iv_measure.h" #include "bsp/ml5238.h" #include "bsp/cs1180.h" /* measure the current & voltage for battery pack by using * ms5238 & cs1180(only used when bms is in small current loading) */ /* this is the inited gain set to the ms5238, but the really gain is calibrated * by measure_system_calibrate */ #define IMON_INITED_GAIN 10 static float imon_gain = IMON_INITED_GAIN; /*calibrate when startup && temperature is changed more than 5? degree * calibrate the ms5238's IMON output voltage gain */ int measure_system_calibrate(void){ }