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.
Dependencies: mbed
Diff: src/boards.cpp
- Revision:
- 30:d8721a46ee03
- Parent:
- 26:55e8e1a9cc84
diff -r 5763dc881c7f -r d8721a46ee03 src/boards.cpp
--- a/src/boards.cpp Tue Mar 05 19:21:32 2019 +0000
+++ b/src/boards.cpp Wed Mar 06 22:32:31 2019 +0000
@@ -38,14 +38,6 @@
unsigned int boardEnableBits;
void initBoards(struct adcValues adcVals){
- /*
- sprintf(strbuf, "\r\nV48_HI=%d\r\n", V48_HI);
- sendSerial(strbuf);
- sprintf(strbuf, "\r\nV48=%d\r\n", adcVals.v48);
- sendSerial(strbuf);
- sprintf(strbuf, "\r\nV48_LO=%d\r\n", V48_LO);
- sendSerial(strbuf);
- */
en_out = 32;
setBoardEnables(16383);
@@ -74,9 +66,6 @@
en_out = en_out_code;
wait_us(250);
-
- //sprintf(strbuf, "en_out=%d wr_out=%d\r\n", en_out_code, wr_out_code);
- //sendSerial(strbuf);
}
for(unsigned int b=max_boards; b<13; b++){
@@ -85,9 +74,6 @@
en_out = 0;
wait_us(250);
-
- //sprintf(strbuf, "en_out=%d wr_out=%d\r\n", en_out_code, wr_out_code);
- //sendSerial(strbuf);
}
}
@@ -140,7 +126,6 @@
if ((setvalue >= limlo) && (setvalue <= limhi)){
return 1;
}else{
- //showRangeError(0, 0, setvalue);
return 0;
}
}
@@ -183,15 +168,9 @@
// Check 48V levels
if(adcVals.v48 > V48_HI){
- //if(buck){
- // stopConverter();
- //}
statVals.V48_IS_HI = TRUE;
statVals.V48_IS_LO = FALSE;
}else if(adcVals.v48 < V48_LO){
- //if(buck){
- // stopConverter();
- //}
statVals.V48_IS_HI = FALSE;
statVals.V48_IS_LO = TRUE;
}else{
@@ -213,15 +192,9 @@
// Check 12V levels
if(adcVals.v12 > V12_HI){
- //if(!buck){
- // stopConverter();
- //}
statVals.V12_IS_HI = TRUE;
statVals.V12_IS_LO = FALSE;
}else if(adcVals.v12 < V12_LO){
- //if(!buck){
- // stopConverter();
- //}
statVals.V12_IS_HI = FALSE;
statVals.V12_IS_LO = TRUE;
}else{
@@ -245,8 +218,6 @@
wr_out_code = setBoardEnables(tBuf);
unsigned int bBuf = getLUT_binCode(ref);
en_out_code = setBoardWeights(bBuf);
- //sprintf(strbuf, "en_out=%d wr_out=%d\r\n", en_out_code, wr_out_code);
- //sendSerial(strbuf);
}
}