URL
https://opencores.org/ocsvn/xulalx25soc/xulalx25soc/trunk
Subversion Repositories xulalx25soc
Compare Revisions
- This comparison shows the changes necessary to convert path
/xulalx25soc/trunk
- from Rev 12 to Rev 13
- ↔ Reverse comparison
Rev 12 → Rev 13
/sw/usbi.cpp
219,6 → 219,7
|
for(int i=0; i<len; i++) |
m_txbuf[6+i] = buf[i]; |
// printf("WRITE::(buf=%*s, %d)\n", len, buf, len); |
r = libusb_bulk_transfer(m_xula_usb_device, XESS_ENDPOINT_OUT, |
(unsigned char*)m_txbuf, len+6, &actual_length, 0); |
if ((r!=0)||(actual_length != len+6)) { |
385,6 → 386,7
else |
printf("\tPopped nothing, %d - %d\n", m_rend, m_rbeg); |
*/ |
|
return nr; |
} |
|
/sw/ttybus.cpp
68,14 → 68,14
const unsigned TTYBUS::MAXRDLEN = 1024; |
const unsigned TTYBUS::MAXWRLEN = 32; |
|
// #define DBGPRINTF null |
#define DBGPRINTF null |
// #define DBGPRINTF printf |
// void null(...) {} |
#define DBGPRINTF filedump |
// #define DBGPRINTF filedump |
|
void null(...) {} |
#include <stdarg.h> |
// #include <varargs.h> |
void filedump(const char *fmt, ...) { |
static void filedump(const char *fmt, ...) { |
static FILE *dbgfp = NULL; |
va_list args; |
|
301,6 → 301,10
TTYBUS::BUSW addr = a; |
char *ptr = m_buf; |
|
// #warning DEBUG_APPROACH |
// encode(0, addr, ptr); |
// return ptr+6; |
|
if ((m_addr_set)&&(a == m_lastaddr)) |
return ptr; |
|
362,7 → 366,7
*ptr++ = charenc((addr>> 6) & 0x03f); |
*ptr++ = charenc( addr & 0x03f); |
} else if (ptr == m_buf) { // Send our address prior to any read |
ptr = m_buf; |
// ptr = m_buf; |
encode(0, addr, ptr); |
ptr+=6; |
} |