From 3a8e00692538d976b5ce9347b5464528cd900121 Mon Sep 17 00:00:00 2001 From: Doug Brown Date: Sun, 28 May 2023 11:24:21 -0700 Subject: [PATCH] Manually control USB PLL The 646 and 1286 have different required USB PLL values when you have a 16 MHz crystal. Detect the chip at runtime to set up the PLL correctly. This requires taking over control of the PLL from LUFA. --- .cproject | 4 ++-- hal/at90usb646/usbcdc.c | 19 ++++++++++++++++++- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/.cproject b/.cproject index f01bbf6..2db39f7 100644 --- a/.cproject +++ b/.cproject @@ -38,7 +38,7 @@ - +