Skip to content

Commit

Permalink
Remove old USB debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
henryefranks committed Aug 21, 2022
1 parent 41bf912 commit 3d32617
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
6 changes: 0 additions & 6 deletions usb/src/usbcfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,17 +249,13 @@ static const USBDescriptor *get_descriptor(USBDriver *usbp,
(void)lang;
switch (dtype) {
case USB_DESCRIPTOR_DEVICE:
chprintf(&SD4, (uint8_t *)"DEVICE DESCRIPTOR\r\n");
return &vcom_device_descriptor;
case USB_DESCRIPTOR_CONFIGURATION:
chprintf(&SD4, (uint8_t *)"CONFIG DESCRIPTOR\r\n");
return &vcom_configuration_descriptor;
case USB_DESCRIPTOR_STRING:
chprintf(&SD4, (uint8_t *)"STRING DESCRIPTOR\r\n");
if (dindex < 4)
return &vcom_strings[dindex];
}
chprintf(&SD4, (uint8_t *)"HELP\r\n");
return NULL;
}

Expand Down Expand Up @@ -316,8 +312,6 @@ static const USBEndpointConfig ep2config = {
static void usb_event(USBDriver *usbp, usbevent_t event) {
extern SerialUSBDriver usb_driver;

chprintf(&SD4, (uint8_t *)"USB EVENT: %x\r\n", event);

switch (event) {
case USB_EVENT_ADDRESS:
return;
Expand Down
9 changes: 0 additions & 9 deletions usb/src/usbserial.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,6 @@ void usb_init(void) {
usbStart(serusbcfg.usbp, &usbcfg);
usbConnectBus(serusbcfg.usbp);

// while(USBD2.state != USB_READY) {
// chprintf(&SD4, "USB waiting... state: %x\r\n", USBD2.state);
// chThdSleepMilliseconds(10);
// }
// chprintf(&SD4, "USB READY!\r\n");
//
// while(usb_driver.state != SDU_READY) chThdSleepMilliseconds(10); // (sduStart is in the main thread)

/*
* Shell manager initialization.
* Event zero is shell exit.
Expand Down Expand Up @@ -123,7 +115,6 @@ void usb_thd_init(void)

void usb_test(void)
{
chnWriteTimeout(&usb_driver, "TEST\r\n", 6, TIME_MS2I(100));
chThdSleepMilliseconds(1000);
return;
}
Expand Down

0 comments on commit 3d32617

Please sign in to comment.