1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-22 07:25:19 +02:00

Revert "atusb/fw/usb/: enable MCU reset on USB bus reset after config selection"

This reverts commit 9b2696b848.

With this patch ATUSB resets constantly when I use it in QEMU with USB
poassthrough.
This commit is contained in:
Stefan Schmidt 2015-03-17 15:30:42 +01:00
parent 4b6f390830
commit 464ab40e39
3 changed files with 1 additions and 8 deletions

View File

@ -247,12 +247,6 @@ void usb_reset(void)
}
void usb_enable_bus_reset(void)
{
UDCON |= 1 << RSTCPU; /* reset CPU on bus reset */
}
void usb_init(void)
{
USBCON |= 1 << FRZCLK; /* freeze the clock */
@ -269,6 +263,7 @@ void usb_init(void)
UDCON &= ~(1 << DETACH); /* attach the pull-up */
UDIEN = 1 << EORSTE; /* enable device interrupts */
// UDCON |= 1 << RSTCPU; /* reset CPU on bus reset */
ep_init();
}

View File

@ -119,7 +119,6 @@ bool handle_setup(const struct setup_request *setup)
case TO_DEVICE(SET_CONFIGURATION):
if (setup->wValue != config_descriptor[5])
return 0;
usb_enable_bus_reset();
break;
/*

View File

@ -182,7 +182,6 @@ bool handle_setup(const struct setup_request *setup);
void set_addr(uint8_t addr);
void usb_ep_change(struct ep_descr *ep);
void usb_reset(void);
void usb_enable_bus_reset(void);
void usb_init(void);
#endif /* !USB_H */