Improve LPC17xx CAN interrupt handling; Additions to LPC17xx SPI driver

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4255 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo
2012-01-03 13:47:40 +00:00
parent 896617df73
commit b63c7c35d3
4 changed files with 102 additions and 22 deletions
+5 -1
View File
@@ -216,12 +216,16 @@ int MAIN_NAME(int argc, char *argv[])
message("ERROR: Data does not match. DLC=%d\n", msgdlc);
for (i = 0; i < msgdlc; i++)
{
message(" %d: TX %02x RX %02x\n", txmsg.cm_data[i], rxmsg.cm_data[i]);
message(" %d: TX %02x RX %02x\n", i, txmsg.cm_data[i], rxmsg.cm_data[i]);
errval = 5;
goto errout_with_dev;
}
}
/* Report success */
message(" ID: %4d DLC: %d -- OK\n", msgid, msgdlc);
/* Set up for the next pass */
msgdata += msgdlc;