Fix low battery shutdown tool 2

(forgot the driver changes)
This commit is contained in:
Kostas Missos
2018-07-01 17:01:10 +03:00
parent 9672650d1a
commit 7b97015df6
3 changed files with 8 additions and 0 deletions

View File

@@ -139,3 +139,8 @@ void max77620_config_default()
}
i2c_send_byte(I2C_5, 0x3C, MAX77620_REG_SD_CFG2, 4);
}
void max77620_low_battery_monitor_config()
{
i2c_send_byte(I2C_5, 0x3C, MAX77620_REG_CNFGGLBL1, MAX77620_CNFGGLBL1_LBDAC_EN | MAX77620_CNFGGLBL1_LBHYST_N | MAX77620_CNFGGLBL1_LBDAC_N);
}