#define va_end __builtin_va_end\r
int kvsprintf(char const *fmt, void *arg, int radix, va_list ap);\r
\r
#define va_end __builtin_va_end\r
int kvsprintf(char const *fmt, void *arg, int radix, va_list ap);\r
\r
//=============================================================================\r
// A buffer where we can queue things up to be sent through the FPGA, for\r
// any purpose (fake tag, as reader, whatever). We go MSB first, since that\r
// is the order in which they go out on the wire.\r
//=============================================================================\r
\r
//=============================================================================\r
// A buffer where we can queue things up to be sent through the FPGA, for\r
// any purpose (fake tag, as reader, whatever). We go MSB first, since that\r
// is the order in which they go out on the wire.\r
//=============================================================================\r
\r
memcpy(c.d.asBytes, str, c.arg[0]);\r
\r
UsbSendPacket((BYTE *)&c, sizeof(c));\r
memcpy(c.d.asBytes, str, c.arg[0]);\r
\r
UsbSendPacket((BYTE *)&c, sizeof(c));\r
void UsbPacketReceived(BYTE *packet, int len)\r
{\r
UsbCommand *c = (UsbCommand *)packet;\r
void UsbPacketReceived(BYTE *packet, int len)\r
{\r
UsbCommand *c = (UsbCommand *)packet;\r
case CMD_DOWNLOADED_SIM_SAMPLES_125K: {\r
BYTE *b = (BYTE *)BigBuf;\r
memcpy(b+c->arg[0], c->d.asBytes, 48);\r
case CMD_DOWNLOADED_SIM_SAMPLES_125K: {\r
BYTE *b = (BYTE *)BigBuf;\r
memcpy(b+c->arg[0], c->d.asBytes, 48);\r