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:
- 5:38b2b8790b40
- Parent:
- 4:28919318b141
diff -r 28919318b141 -r 38b2b8790b40 bq79606.cpp
--- a/bq79606.cpp Sun Mar 21 22:58:15 2021 +0000
+++ b/bq79606.cpp Sun Apr 11 09:08:16 2021 +0000
@@ -15,12 +15,10 @@
extern DigitalOut bmsWakeUp;
void sendUART(int length, uint8_t * data){
- pc1.printf("SENDING TO BOARD\n");
+ wait_ms(1); // MUST
for(int i = 0; i < length; i++) {
- //pc1.putc(data[i]);
bms.putc(data[i]);
}
- //wait_ms(1);
}
void Wake79606(){
@@ -29,14 +27,7 @@
bmsWakeUp = 0;
wait_us(275);
bmsWakeUp = 1;
-
- //NMOS TRANSISTOR LOGIC
-
- /*bmsWakeUp = 0;
- wait_ms(50);
- bmsWakeUp = 1;
- wait_ms(50);
- bmsWakeUp = 0;*/
+ wait_ms(10);
}
void AutoAddress()
@@ -300,6 +291,7 @@
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
+
}