Browse Source

AMU usbstatus correct name from enable UART

Kano 12 years ago
parent
commit
8478ee4436
3 changed files with 4 additions and 1 deletions
  1. 1 1
      driver-icarus.c
  2. 2 0
      usbutils.c
  3. 1 0
      usbutils.h

+ 1 - 1
driver-icarus.c

@@ -367,7 +367,7 @@ static void icarus_initialise(struct cgpu_info *icarus, int baud)
 			// Enable the UART
 			// Enable the UART
 			transfer(icarus, CP210X_TYPE_OUT, CP210X_REQUEST_IFC_ENABLE,
 			transfer(icarus, CP210X_TYPE_OUT, CP210X_REQUEST_IFC_ENABLE,
 				 CP210X_VALUE_UART_ENABLE,
 				 CP210X_VALUE_UART_ENABLE,
-				 icarus->usbdev->found->interface, C_PURGETX);
+				 icarus->usbdev->found->interface, C_ENABLE_UART);
 
 
 			if (icarus->usbinfo.nodev)
 			if (icarus->usbinfo.nodev)
 				return;
 				return;

+ 2 - 0
usbutils.c

@@ -523,6 +523,7 @@ static const char *C_GET_AVALON_READY_S = "AvalonReady";
 static const char *C_AVALON_RESET_S = "AvalonReset";
 static const char *C_AVALON_RESET_S = "AvalonReset";
 static const char *C_GET_AVALON_RESET_S = "GetAvalonReset";
 static const char *C_GET_AVALON_RESET_S = "GetAvalonReset";
 static const char *C_FTDI_STATUS_S = "FTDIStatus";
 static const char *C_FTDI_STATUS_S = "FTDIStatus";
+static const char *C_ENABLE_UART_S = "EnableUART";
 
 
 #ifdef EOL
 #ifdef EOL
 #undef EOL
 #undef EOL
@@ -1007,6 +1008,7 @@ static void cgusb_check_init()
 		usb_commands[C_AVALON_RESET] = C_AVALON_RESET_S;
 		usb_commands[C_AVALON_RESET] = C_AVALON_RESET_S;
 		usb_commands[C_GET_AVALON_RESET] = C_GET_AVALON_RESET_S;
 		usb_commands[C_GET_AVALON_RESET] = C_GET_AVALON_RESET_S;
 		usb_commands[C_FTDI_STATUS] = C_FTDI_STATUS_S;
 		usb_commands[C_FTDI_STATUS] = C_FTDI_STATUS_S;
+		usb_commands[C_ENABLE_UART] = C_ENABLE_UART_S;
 
 
 		stats_initialised = true;
 		stats_initialised = true;
 	}
 	}

+ 1 - 0
usbutils.h

@@ -243,6 +243,7 @@ enum usb_cmds {
 	C_AVALON_RESET,
 	C_AVALON_RESET,
 	C_GET_AVALON_RESET,
 	C_GET_AVALON_RESET,
 	C_FTDI_STATUS,
 	C_FTDI_STATUS,
+	C_ENABLE_UART,
 	C_MAX
 	C_MAX
 };
 };