File tree 1 file changed +5
-1
lines changed
hardware/arduino/cores/arduino
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -634,6 +634,8 @@ static inline void USB_ClockEnable()
634
634
PLLCSR |= (1 <<PINDIV); // Need 16 MHz xtal
635
635
#elif F_CPU == 8000000UL
636
636
PLLCSR &= ~(1 <<PINDIV); // Need 8 MHz xtal
637
+ #else
638
+ #error "Clock rate of F_CPU not supported"
637
639
#endif
638
640
639
641
// AT90USB646, AT90USB647, AT90USB1286, AT90USB1287
@@ -646,11 +648,13 @@ static inline void USB_ClockEnable()
646
648
// For AT90USB64x only. Do not use with AT90USB128x.
647
649
PLLCSR = (PLLCSR & ~(1 <<PLLP0)) | ((1 <<PLLP2) | (1 <<PLLP1)); // Need 16 MHz xtal
648
650
#else
649
- #error "USB Chip not supported, please defined method of PLL initialization yourself "
651
+ #error "USB Chip not supported, please defined method of USB PLL initialization"
650
652
#endif
651
653
#elif F_CPU == 8000000UL
652
654
// for Atmel AT90USB128x and AT90USB64x
653
655
PLLCSR = (PLLCSR & ~(1 <<PLLP2)) | ((1 <<PLLP1) | (1 <<PLLP0)); // Need 8 MHz xtal
656
+ #else
657
+ #error "Clock rate of F_CPU not supported"
654
658
#endif
655
659
#endif
656
660
You can’t perform that action at this time.
0 commit comments