Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: bq79606.cpp
- Revision:
- 4:28919318b141
- Parent:
- 3:4dc457ed63d5
- Child:
- 5:38b2b8790b40
diff -r 4dc457ed63d5 -r 28919318b141 bq79606.cpp
--- a/bq79606.cpp Sat Mar 20 17:54:12 2021 +0000
+++ b/bq79606.cpp Sun Mar 21 22:58:15 2021 +0000
@@ -25,10 +25,10 @@
void Wake79606(){
bmsWakeUp = 1;
- wait_ms(50);
+ wait_us(275);
bmsWakeUp = 0;
- wait_ms(50);
- //bmsWakeUp = 1;
+ wait_us(275);
+ bmsWakeUp = 1;
//NMOS TRANSISTOR LOGIC
@@ -297,9 +297,9 @@
wait_ms(2); // provides settling time for TSREF
WriteReg(0, DIAG_CTRL2, 0x41, 1, FRMWRT_ALL_NR); //set AUX ADC to measure cell 1
-
-
-
+ WriteReg(0, GPIO1_CONF, 0x20, 1, FRMWRT_ALL_NR); //configure GPIO as input
+
+ WriteReg(0, AUX_ADC_CTRL1, 0x10, 1, FRMWRT_ALL_NR); //enable GPIO1
}