Skip to content

Commit 200d23d

Browse files
committed
Merged 1.0.2
Merge remote-tracking branch 'arduino/master' into ide-1.5.x Conflicts: app/src/processing/app/debug/AvrdudeUploader.java build/shared/examples/09.USB/Keyboard/KeyboardLogout/KeyboardLogout.ino build/shared/examples/09.USB/Keyboard/KeyboardReprogram/KeyboardReprogram.ino build/shared/examples/09.USB/Keyboard/KeyboardSerial/KeyboardSerial.ino build/shared/examples/09.USB/Mouse/ButtonMouseControl/ButtonMouseControl.ino build/shared/examples/09.USB/Mouse/JoystickMouseControl/JoystickMouseControl.ino hardware/arduino/boards.txt
2 parents 706f139 + bb5f10f commit 200d23d

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

hardware/arduino/avr/cores/arduino/HardwareSerial.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class HardwareSerial : public Stream
5353
volatile uint8_t *ucsrc, volatile uint8_t *udr,
5454
uint8_t rxen, uint8_t txen, uint8_t rxcie, uint8_t udrie, uint8_t u2x);
5555
void begin(unsigned long);
56-
void begin(unsigned long, byte);
56+
void begin(unsigned long, uint8_t);
5757
void end();
5858
virtual int available(void);
5959
virtual int peek(void);

hardware/arduino/avr/cores/arduino/USBCore.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ const u16 STRING_IPRODUCT[17] = {
5353
(3<<8) | (2+2*16),
5454
#if USB_PID == 0x8036
5555
'A','r','d','u','i','n','o',' ','L','e','o','n','a','r','d','o'
56+
#elif USB_PID == 0x8037
57+
'A','r','d','u','i','n','o',' ','M','i','c','r','o',' ',' ',' '
58+
#elif USB_PID == 0x9208
59+
'L','i','l','y','P','a','d','U','S','B',' ',' ',' ',' ',' ',' '
5660
#else
5761
'U','S','B',' ','I','O',' ','B','o','a','r','d',' ',' ',' ',' '
5862
#endif
@@ -62,6 +66,8 @@ const u16 STRING_IMANUFACTURER[12] = {
6266
(3<<8) | (2+2*11),
6367
#if USB_VID == 0x2341
6468
'A','r','d','u','i','n','o',' ','L','L','C'
69+
#elif USB_VID == 0x1b4f
70+
'S','p','a','r','k','F','u','n',' ',' ',' '
6571
#else
6672
'U','n','k','n','o','w','n',' ',' ',' ',' '
6773
#endif
@@ -638,7 +644,11 @@ void USBDevice_::attach()
638644
_usbConfiguration = 0;
639645
UHWCON = 0x01; // power internal reg
640646
USBCON = (1<<USBE)|(1<<FRZCLK); // clock frozen, usb enabled
647+
#if F_CPU == 16000000UL
641648
PLLCSR = 0x12; // Need 16 MHz xtal
649+
#elif F_CPU == 8000000UL
650+
PLLCSR = 0x02; // Need 8 MHz xtal
651+
#endif
642652
while (!(PLLCSR & (1<<PLOCK))) // wait for lock pll
643653
;
644654

0 commit comments

Comments
 (0)