From fbd9ae4b67b74a9a215f8231d33e3b2f5509abd0 Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Mon, 30 Aug 2021 17:35:47 -0400 Subject: run watch at 4 MHz unless USB is enabled --- watch-library/config/hpl_oscctrl_config.h | 2 +- watch-library/config/peripheral_clk_config.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'watch-library/config') diff --git a/watch-library/config/hpl_oscctrl_config.h b/watch-library/config/hpl_oscctrl_config.h index 405ff207..ba2d42e6 100644 --- a/watch-library/config/hpl_oscctrl_config.h +++ b/watch-library/config/hpl_oscctrl_config.h @@ -147,7 +147,7 @@ // This defines the oscillator frequency (Mhz) // osc16m_freq #ifndef CONF_OSC16M_FSEL -#define CONF_OSC16M_FSEL OSCCTRL_OSC16MCTRL_FSEL_8_Val +#define CONF_OSC16M_FSEL OSCCTRL_OSC16MCTRL_FSEL_4_Val #endif // Oscillator Calibration Control diff --git a/watch-library/config/peripheral_clk_config.h b/watch-library/config/peripheral_clk_config.h index 5cd1bb68..61619b6a 100644 --- a/watch-library/config/peripheral_clk_config.h +++ b/watch-library/config/peripheral_clk_config.h @@ -61,7 +61,7 @@ * \brief CPU's Clock frequency */ #ifndef CONF_CPU_FREQUENCY -#define CONF_CPU_FREQUENCY 8000000 +#define CONF_CPU_FREQUENCY 4000000 #endif // RTC Clock Source -- cgit v1.2.3