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:
- 43:291bbdba48f3
- Parent:
- 42:3ae73b61f657
- Child:
- 44:741ee27c8a34
diff -r 3ae73b61f657 -r 291bbdba48f3 src/boards.cpp
--- a/src/boards.cpp Sat Mar 09 21:01:45 2019 +0000
+++ b/src/boards.cpp Sat Mar 09 21:16:38 2019 +0000
@@ -57,7 +57,7 @@
*******************************************************************************/
void setBoardControls(unsigned int tCode)
{
- for(unsigned int b=0; b<max_boards; b++){
+ //for(unsigned int b=0; b<max_boards; b++){
//wr_out = 0;
//en_out_code = bCodeRow[b];
@@ -65,16 +65,16 @@
//wr_out = ~wr_out_code;
//en_out = en_out_code;
- wait_us(250);
- }
- for(unsigned int b=max_boards; b<13; b++){
+ //wait_us(250);
+ //}
+ //for(unsigned int b=max_boards; b<13; b++){
//wr_out_code = 1<<b;
//wr_out = ~wr_out_code;
//en_out = 0;
- wait_us(250);
- }
+ //wait_us(250);
+ //}
}
/*******************************************************************************
@@ -199,14 +199,14 @@
void updateControls(unsigned short ref){
unsigned int tBuf = getLUT_thermCode(ref);
- if(max_boards <= 3){
- getLUT_binCodeArray(ref);
- setBoardControls(tBuf);
- }else{
- wr_out_code = setBoardEnables(tBuf);
- unsigned int bBuf = getLUT_binCode(ref);
- en_out_code = setBoardWeights(bBuf);
- }
+ //if(max_boards <= 3){
+ // getLUT_binCodeArray(ref);
+ // setBoardControls(tBuf);
+ //}else{
+ //wr_out_code = setBoardEnables(tBuf);
+ //unsigned int bBuf = getLUT_binCode(ref);
+ //en_out_code = setBoardWeights(bBuf);
+ //}
}
void XupdateControls(unsigned short ref){
@@ -222,12 +222,12 @@
sendSerial("enter updateControls\r\n");
unsigned int cBuf = getLUT_thermCode(ref);
sendSerial("cBuf1 updateControls\r\n");
- wr_out_code = setBoardEnables(cBuf);
+ //wr_out_code = setBoardEnables(cBuf);
sendSerial("wr_out_code updateControls\r\n");
- cBuf = getLUT_binCode(ref);
+ //cBuf = getLUT_binCode(ref);
sendSerial("cBuf2 updateControls\r\n");
- en_out_code = setBoardWeights(cBuf);
+ //en_out_code = setBoardWeights(cBuf);
sendSerial("en_out_code updateControls\r\n");
wait(0.5);