URL
https://opencores.org/ocsvn/gecko3/gecko3/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 13 |
Rev 16 |
Line 272... |
Line 272... |
|
|
case GET_CAPABILITIES:
|
case GET_CAPABILITIES:
|
usb_tmc_status = TMC_STATUS_SUCCESS;
|
usb_tmc_status = TMC_STATUS_SUCCESS;
|
{
|
{
|
uint8_t i = 0;
|
uint8_t i = 0;
|
code char *local_capabilities = &((code char)USB_TMC_CAPABILITIES);
|
//code char *local_capabilities = &((code char)USB_TMC_CAPABILITIES);
|
for(i;i<0x18;i++){
|
for(i;i<0x18;i++){
|
//EP0BUF[i] = (&(uintptr_t)USB_TMC_CAPABILITIES)[i];
|
//EP0BUF[i] = (&(code char)USB_TMC_CAPABILITIES)[i];
|
EP0BUF[i] = local_capabilities[i];
|
//EP0BUF[i] = local_capabilities[i];
|
|
EP0BUF[i] = (&(code unsigned char)USB_TMC_CAPABILITIES)[i];
|
}
|
}
|
EP0BCH = 0;
|
EP0BCH = 0;
|
EP0BCL = 0x18;
|
EP0BCL = 0x18;
|
}
|
}
|
break;
|
break;
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.