1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-04 23:23:43 +02:00

Revert "atusb/fw/: added optional debug log with request ATUSB_READ_LOG"

This reverts commit 39e3d4e61a.

The log isn't so useful in its present state because we may have to
unplug/replug to get out of a troublesome condition.
This commit is contained in:
Werner Almesberger 2011-07-05 19:39:25 -03:00
parent 391c37f587
commit ead7ade51e
2 changed files with 0 additions and 33 deletions

View File

@ -56,20 +56,6 @@ static void do_buf_write(void *user)
#define BUILD_OFFSET 7 /* '#' plus "65535" plus ' ' */
#ifdef DEBUG_LOG
#define LOG_SIZE 16
static struct {
uint16_t n;
struct setup_request setup;
} log_buf[LOG_SIZE];
static int log_pos = 0;
#endif /* DEBUG_LOG */
static int my_setup(const struct setup_request *setup)
{
uint16_t req = setup->bmRequestType | setup->bRequest << 8;
@ -77,17 +63,6 @@ static int my_setup(const struct setup_request *setup)
uint8_t i;
uint64_t tmp64;
#ifdef DEBUG_LOG
uint8_t pos;
pos = log_pos & (LOG_SIZE-1);
log_buf[pos].n = log_pos;
log_buf[pos].setup = *setup;
log_pos++;
#endif /* DEBUG_LOG */
switch (req) {
case ATUSB_FROM_DEV(ATUSB_ID):
debug("ATUSB_ID\n");
@ -154,12 +129,6 @@ static int my_setup(const struct setup_request *setup)
gpio_cleanup();
return 1;
#ifdef DEBUG_LOG
case ATUSB_FROM_DEV(ATUSB_READ_LOG):
usb_send(&eps[0], log_buf, sizeof(log_buf), NULL, NULL);
return 1;
#endif
case ATUSB_TO_DEV(ATUSB_SLP_TR):
debug("ATUSB_SLP_TR\n");
slp_tr();

View File

@ -28,7 +28,6 @@
* ->host ATUSB_GPIO dir+data mask+p# 3
* host-> ATUSB_SLP_TR - - 0
* host-> ATUSB_GPIO_CLEANUP - - 0
* ->host ATUSB_READ_LOG - - #bytes
*
* host-> ATUSB_REG_WRITE value addr 0
* ->host ATUSB_REG_READ - addr 1
@ -83,7 +82,6 @@ enum atspi_requests {
ATUSB_GPIO,
ATUSB_SLP_TR,
ATUSB_GPIO_CLEANUP,
ATUSB_READ_LOG,
ATUSB_REG_WRITE = 0x20, /* transceiver group */
ATUSB_REG_READ,
ATUSB_BUF_WRITE,