Treehouse Mbed Team / Mbed 2 deprecated APS_DCM1SL

Dependencies:   mbed

Revision:
8:d3d7dca419b3
Parent:
6:39442d493098
Child:
9:816b9a4e4f21
--- a/src/boards.cpp	Wed Dec 05 00:20:34 2018 +0000
+++ b/src/boards.cpp	Thu Dec 06 16:22:11 2018 +0000
@@ -52,17 +52,17 @@
 //void setBoardEnables(unsigned int enableBits[])
 unsigned int setBoardEnables(unsigned int tCode)
 {
-   unsigned int i = 0;
-   unsigned int boardTcode = 0;
+   //unsigned int i = 0;
+   //unsigned int boardTcode = 0;
    // Default is all boards OFF
    //unsigned int boardTcode = ALLOFF;
    
    dec2therm_fix(tCode, (unsigned int)BOARDS_THERMCODE_WIDTH);
    
-   for (i = 0; i < MAX_BOARDS; i++){
-      // 0 == enabled
-      boardTcode = (thermCode[i] & (1 << i));
-   }
+   //for (i = 0; i < MAX_BOARDS; i++){
+   //   // 0 == enabled
+   //   boardTcode = (thermCode[i] & (1 << i));
+   //}
     
    //wr_out = boardTcode;
    wr_out = tCode;
@@ -76,15 +76,15 @@
 //void setBoardWeights(unsigned int enableWeights[])
 unsigned int setBoardWeights(unsigned int bCode)
 {
-   unsigned int i = 0;
-   unsigned int boardBcode = 0;
+   //unsigned int i = 0;
+   //unsigned int boardBcode = 0;
    
    dec2bin_fix(bCode, WEIGHT_BIN_WIDTH);
 
-   for (i = 0; i <= WEIGHT_BIN_WIDTH; i++){
-      // 0 == enabled
-      boardBcode = (binCode[i] & (1 << i));
-   }
+   //for (i = 0; i <= WEIGHT_BIN_WIDTH; i++){
+   //   // 0 == enabled
+   //   boardBcode = (binCode[i] & (1 << i));
+   //}
    //en_out = boardBcode;
    en_out = bCode;
    toggleLatchSignal();