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:
- 8:d3d7dca419b3
- Parent:
- 6:39442d493098
- Child:
- 9:816b9a4e4f21
diff -r 860b3a8275cb -r d3d7dca419b3 src/boards.cpp
--- 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();