Implemented “-l” option to check USB

This commit is contained in:
2017-04-12 10:26:50 +02:00
parent 8c916cab22
commit 9df66d5c96
6 changed files with 62 additions and 15 deletions
+3 -2
View File
@@ -308,7 +308,7 @@ DRS::DRS()
found = 0;
/* check for USB-Mezzanine test board */
if (musb_open(&usb_interface, 0x10C4, 0x1175, index, 1, 0) == MUSB_SUCCESS) {
if (musb_open(&usb_interface, 0x10C4, 0x1175, index, 1, 0, 0) == MUSB_SUCCESS) {
/* check ID */
buffer[0] = USB_CMD_IDENT;
@@ -332,7 +332,7 @@ DRS::DRS()
}
/* check for DRS4 evaluation board */
if (musb_open(&usb_interface, 0x04B4, 0x1175, index, 1, 0) == MUSB_SUCCESS) {
if (musb_open(&usb_interface, 0x04B4, 0x1175, index, 1, 0, 0) == MUSB_SUCCESS) {
/* check ID */
if (musb_get_device(usb_interface) != 1) {
@@ -393,6 +393,7 @@ DRS::~DRS()
/*------------------------------------------------------------------*/
void DRS::SortBoards()
{
/* sort boards according to serial number (simple bubble sort) */