Browse Source

AMU usbstatus correct name from enable UART

nfactor-troky
Kano 12 years ago
parent
commit
8478ee4436
  1. 2
      driver-icarus.c
  2. 2
      usbutils.c
  3. 1
      usbutils.h

2
driver-icarus.c

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

2
usbutils.c

@ -523,6 +523,7 @@ static const char *C_GET_AVALON_READY_S = "AvalonReady"; @@ -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_GET_AVALON_RESET_S = "GetAvalonReset";
static const char *C_FTDI_STATUS_S = "FTDIStatus";
static const char *C_ENABLE_UART_S = "EnableUART";
#ifdef EOL
#undef EOL
@ -1007,6 +1008,7 @@ static void cgusb_check_init() @@ -1007,6 +1008,7 @@ static void cgusb_check_init()
usb_commands[C_AVALON_RESET] = C_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_ENABLE_UART] = C_ENABLE_UART_S;
stats_initialised = true;
}

1
usbutils.h

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

Loading…
Cancel
Save