summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6e785ee)
Add a delay loop to make sure the host sees the pull-up low for long
enough.
Signed-off-by: Keith Packard <keithp@keithp.com>
ao_usb_init(void)
{
#if HAS_USB_PULLUP
ao_usb_init(void)
{
#if HAS_USB_PULLUP
ao_enable_output(AO_USB_PULLUP_PORT, AO_USB_PULLUP_PIN, AO_USB_PULLUP, 0);
ao_enable_output(AO_USB_PULLUP_PORT, AO_USB_PULLUP_PIN, AO_USB_PULLUP, 0);
+
+ for (i = 0; i < 40000; i++)
+ ao_arch_nop();