From 065e0412ec934958d96da3fd3e6d6020bddcab22 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Thu, 10 May 2018 14:58:03 -0700 Subject: efm32hg: cmu: add USHFRCODIV2 clock definition This clock is the USB High Frequency PLL that gets trimmed based on clock recovery. It is the most accurate PLL on the system, assuming it is connected via USB. Add the definition of this clock in preparation for being able to switch to it. Signed-off-by: Sean Cross --- include/libopencm3/efm32/hg/cmu.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/libopencm3/efm32/hg/cmu.h b/include/libopencm3/efm32/hg/cmu.h index 5266af94..9a9265d3 100644 --- a/include/libopencm3/efm32/hg/cmu.h +++ b/include/libopencm3/efm32/hg/cmu.h @@ -352,6 +352,7 @@ #define CMU_CMD_HFCLKSEL_HFXO CMU_CMD_HFCLKSEL(2) #define CMU_CMD_HFCLKSEL_LFRCO CMU_CMD_HFCLKSEL(3) #define CMU_CMD_HFCLKSEL_LFXO CMU_CMD_HFCLKSEL(4) +#define CMU_CMD_HFCLKSEL_USHFRCODIV2 CMU_CMD_HFCLKSEL(5) /* CMU_LFCLKSEL */ /* Bits 31:21 - Reserved */ @@ -633,6 +634,7 @@ enum cmu_osc { LFXO, /**< External, 32.768kHz */ AUXHFRCO, /**< Internal, 1-28Mhz */ USHFRCO, /**< Internal, 48MHz */ + USHFRCODIV2, /**< Internal, 24MHz */ }; /* --- Function prototypes ------------------------------------------------- */ -- cgit v1.2.3