comparison src/cs/drivers/drv_app/fchg/fchg_task.c @ 222:c336ed5691a5

FCHG: clear BCICTL2 on boot for extra safety
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 26 Apr 2021 22:04:10 +0000
parents 032a561fab2b
children 3c790d29748e
comparison
equal deleted inserted replaced
221:5bf097aeaad7 222:c336ed5691a5
34 rvf_send_trace("FCHG task: Initialization", 25, NULL_PARAM, 34 rvf_send_trace("FCHG task: Initialization", 25, NULL_PARAM,
35 RV_TRACE_LEVEL_DEBUG_LOW, FCHG_USE_ID); 35 RV_TRACE_LEVEL_DEBUG_LOW, FCHG_USE_ID);
36 pwr_load_ffs_batt_table(); 36 pwr_load_ffs_batt_table();
37 pwr_load_ffs_charging_config(); 37 pwr_load_ffs_charging_config();
38 set_initial_state(); 38 set_initial_state();
39 /* just for safety, clear any previous BCI hardware state */
40 ABB_Write_Register_on_page(PAGE0, BCICTL2, 0);
39 pwr_init_discharge(); 41 pwr_init_discharge();
40 fchg_is_running = 1; 42 fchg_is_running = 1;
41 43
42 /* loop to process messages */ 44 /* loop to process messages */
43 while (error_occured == FALSE) 45 while (error_occured == FALSE)