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:
- 6:6a98a279d987
- Parent:
- 5:979ff570efce
- Child:
- 7:1118eeb3fe41
--- a/main.cpp Mon Mar 22 01:30:41 2021 +0000 +++ b/main.cpp Thu Oct 28 19:09:52 2021 +0000 @@ -3,13 +3,13 @@ // - - - PIN CONFIGURATION - - - -DigitalIn bmsFault(PB_4); -DigitalOut bmsWakeUp(PB_5); +//DigitalIn bmsFault(PB_4); +DigitalOut bmsWakeUp(PB_4); +DigitalOut LV_ON(PC_6); // - - - UART CONFIGURATION - - - - -Serial bms(PA_0, PA_1, 250000); //UART ka BMS Slaveu -Serial pc1(USBTX, USBRX, 9600);//PC_10, PC_11,9600); //UART ka PCu Serijskom monitoru +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 CAN can1(PB_8, PB_9, 500000); CANMessage message1; @@ -188,6 +188,7 @@ //bmsWakeUp = 0; pc1.printf("Pre while-a\n"); + LV_ON = 1; while (1) { pc1.printf("Main Code \n"); @@ -209,7 +210,7 @@ waitFrameTemp(); - cellBalanceStart(); + // cellBalanceStart(); //slanje zahteva za GRESKAMA //ReadReg(0, 0x52, &wTemp, 2, 0); // 0ms timeout