From 1c115f0379034068d642a5c41d67297a3bea66d2 Mon Sep 17 00:00:00 2001
From: Michael DM Dryden <mdryden@chem.utoronto.ca>
Date: Tue, 20 Jun 2017 17:11:41 -0400
Subject: [PATCH] Overclock CPU to 48 MHz to make DFU bootloader USB work after
 software jump.

---
 config.mk               | 2 +-
 src/config/conf_clock.h | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/config.mk b/config.mk
index 5d4041c..6e2af7a 100644
--- a/config.mk
+++ b/config.mk
@@ -41,7 +41,7 @@ BUILD_DIR =
 
 # Microcontroller: atxmega128a1, atmega128, attiny261, etc.
 MCU = atxmega256a3u
-F_CPU = 32000000
+F_CPU = 48000000
 
 # Programming settings
 AVRDUDE_DEV = x256a3u
diff --git a/src/config/conf_clock.h b/src/config/conf_clock.h
index 8f6349c..f53945f 100644
--- a/src/config/conf_clock.h
+++ b/src/config/conf_clock.h
@@ -44,9 +44,9 @@
 #define CONF_CLOCK_H_INCLUDED
 
 #include "conf_board.h"
-
+//
 #if BOARD_VER_MAJOR >= 1 && BOARD_VER_MINOR >= 2 && BOARD_VER_MICRO >= 3
-    #define CONFIG_SYSCLK_SOURCE            SYSCLK_SRC_RC32MHZ
+    #define CONFIG_SYSCLK_SOURCE            SYSCLK_SRC_PLL
 
     #define CONFIG_SYSCLK_PSADIV            SYSCLK_PSADIV_1
     #define CONFIG_SYSCLK_PSBCDIV           SYSCLK_PSBCDIV_1_1
-- 
GitLab