Do less re-initialization of smbus, add battery charger enabling

This commit is contained in:
Jeremy Soller
2019-11-05 14:42:15 -07:00
parent aee44bbce0
commit 976874f525
5 changed files with 44 additions and 52 deletions

View File

@@ -8,4 +8,10 @@ void smbus_init(void) {
SMB25MS = 0x19;
SMB45P3USL = 0x5C;
SMB45P3USH = 0x01;
// Clock to 400 KHz
SCLKTSA = 3;
// Enable host interface
HOCTL2A = 1 << 0;
}