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: main.cpp
- Revision:
- 8:ad9084b473a9
- Parent:
- 7:1118eeb3fe41
--- a/main.cpp Thu Oct 28 19:10:50 2021 +0000 +++ b/main.cpp Sat Nov 06 21:08:56 2021 +0000 @@ -9,7 +9,8 @@ // - - - UART CONFIGURATION - - - Serial bms(PC_12, PD_2, 250000); //UART ka BMS Slaveu -Serial pc1(PC_10, PC_11, 9600);//PC_10, PC_11,9600); //UART ka PCu Serijskom monitoru +Serial pc1(USBTX, USBRX, 9600); +//Serial pc1(PC_10, PC_11, 9600);//PC_10, PC_11,9600); //UART ka PCu Serijskom monitoru CAN can1(PB_8, PB_9, 500000); CANMessage message1; @@ -113,6 +114,7 @@ WriteReg(0, CB_CELL1_CTRL, 0xBC, 1, FRMWRT_ALL_NR);//cell 1- 1 minute balance timer WriteReg(0, CB_CELL2_CTRL, 0xBC, 1, FRMWRT_ALL_NR);//cell 2- 1 minute balance timer WriteReg(0, CB_CELL3_CTRL, 0xBC, 1, FRMWRT_ALL_NR);//cell 3- 1 minute balance timer + WriteReg(0, CB_CELL4_CTRL, 0xBC, 1, FRMWRT_ALL_NR);//cell 3- 1 minute balance timer WriteReg(0, CONTROL2, 0x30, 1, FRMWRT_ALL_NR);//BAL_GO set to 1, and TSREF enabled wait_us(100);