This commit is contained in:
parent
9920f30203
commit
61a91657bd
|
@ -102,8 +102,8 @@ void bmu_config_init(void)
|
||||||
|
|
||||||
drv_gpio_set_pin_status(kGpioType_SP1_Cs_En2, kGpioStatus_Low);
|
drv_gpio_set_pin_status(kGpioType_SP1_Cs_En2, kGpioStatus_Low);
|
||||||
//drv_gpio_set_pin_status(kGpioType_SP1_Cs_En1, kGpioStatus_Low);
|
//drv_gpio_set_pin_status(kGpioType_SP1_Cs_En1, kGpioStatus_Low);
|
||||||
//bmu_data.bmu_num = get_eeprom_data(kEep_DevAddr_SlaverNum, kEepromDataType_Low);
|
bmu_data.bmu_num = get_eeprom_data(kEep_DevAddr_SlaverNum, kEepromDataType_Low);
|
||||||
bmu_data.bmu_num = 2;
|
//bmu_data.bmu_num = 2;
|
||||||
if (bmu_data.bmu_num > BMU_MAX_NUM || bmu_data.bmu_num == 0)
|
if (bmu_data.bmu_num > BMU_MAX_NUM || bmu_data.bmu_num == 0)
|
||||||
{
|
{
|
||||||
bmu_data.bmu_num = BMU_MAX_NUM;
|
bmu_data.bmu_num = BMU_MAX_NUM;
|
||||||
|
@ -112,11 +112,11 @@ void bmu_config_init(void)
|
||||||
bmu_data.bmu_ic_num = get_eeprom_data(kEep_AfeNum_CellNum, kEepromDataType_High);
|
bmu_data.bmu_ic_num = get_eeprom_data(kEep_AfeNum_CellNum, kEepromDataType_High);
|
||||||
bmu_data.total_ic_num = bmu_data.bmu_num * bmu_data.bmu_ic_num;
|
bmu_data.total_ic_num = bmu_data.bmu_num * bmu_data.bmu_ic_num;
|
||||||
bmu_data.ic = bsp_adbms1818_global();
|
bmu_data.ic = bsp_adbms1818_global();
|
||||||
//bmu_data.total_cell_num = get_eeprom_data(kEep_CellNum, kEepromDataType_Full);
|
bmu_data.total_cell_num = get_eeprom_data(kEep_CellNum, kEepromDataType_Full);
|
||||||
//bmu_data.total_temp_num = get_eeprom_data(kEep_TempNum, kEepromDataType_Full);
|
bmu_data.total_temp_num = get_eeprom_data(kEep_TempNum, kEepromDataType_Full);
|
||||||
|
|
||||||
bmu_data.total_cell_num = 32;
|
//bmu_data.total_cell_num = 32;
|
||||||
bmu_data.total_temp_num = 18;
|
//bmu_data.total_temp_num = 18;
|
||||||
|
|
||||||
//set num from hmi =>adapt num for furture
|
//set num from hmi =>adapt num for furture
|
||||||
cell_num = bmu_data.total_cell_num / bmu_data.bmu_num;
|
cell_num = bmu_data.total_cell_num / bmu_data.bmu_num;
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue