We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1566006 commit b407337Copy full SHA for b407337
cores/arduino/USBCore.cpp
@@ -637,6 +637,12 @@ void USB_::attach()
637
PLLCSR = 0x12; // Need 16 MHz xtal
638
while (!(PLLCSR & (1<<PLOCK))) // wait for lock pll
639
;
640
+
641
+ // Some tests on specific versions of macosx (10.7.3), reported some
642
+ // strange behaviuors when the board is reset using the serial
643
+ // port touch at 1200 bps. This delay fixes this behaviour.
644
+ delay(1);
645
646
USBCON = ((1<<USBE)|(1<<OTGPADE)); // start USB clock
647
UDIEN = (1<<EORSTE)|(1<<SOFE); // Enable interrupts for EOR (End of Reset) and SOF (start of frame)
648
UDCON = 0; // enable attach resistor
@@ -659,4 +665,4 @@ void USB_::poll()
659
665
{
660
666
}
661
667
662
-#endif /* if defined(USBCON) */
668
+#endif /* if defined(USBCON) */
0 commit comments