diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-10-21 10:45:33 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-10-21 10:45:33 -0600 |
commit | b52689da1021481b1d2b809fbadc9e9c6334d67e (patch) | |
tree | 3d21bbcd0c9b9225954bdc222de3524a3f1e333a /nuttx/configs/olimex-efm32g880f128-stk | |
parent | 8a56f7e3aa30f4812ca9d7e2cee27abe2fdbd28f (diff) | |
download | px4-nuttx-b52689da1021481b1d2b809fbadc9e9c6334d67e.tar.gz px4-nuttx-b52689da1021481b1d2b809fbadc9e9c6334d67e.tar.bz2 px4-nuttx-b52689da1021481b1d2b809fbadc9e9c6334d67e.zip |
EFM32: Add LFA and LFB clock support
Diffstat (limited to 'nuttx/configs/olimex-efm32g880f128-stk')
-rw-r--r-- | nuttx/configs/olimex-efm32g880f128-stk/include/board.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nuttx/configs/olimex-efm32g880f128-stk/include/board.h b/nuttx/configs/olimex-efm32g880f128-stk/include/board.h index 96b11a40f..e1f1f68b2 100644 --- a/nuttx/configs/olimex-efm32g880f128-stk/include/board.h +++ b/nuttx/configs/olimex-efm32g880f128-stk/include/board.h @@ -56,6 +56,7 @@ * - 4-32 MHz High Frequency Crystal Oscillator (HFXO) * - 32.768 kHz Low Frequency RC Oscillator (LFRCO) * - 32.768 kHz Low Frequency Crystal Oscillator (LFXO) + * - 1KHz Ultra Low Frequency RC Oscillator (ULFRCO) * * The device boots with 14 MHz HFRCO as the HFCLK source. */ @@ -67,6 +68,7 @@ #define BOARD_HFXO_FREQUENCY 32000000 /* 32MHz crystal on board */ #define BOARD_LFRCO_FREQUENCY 32768 /* Low frequency oscillator */ #define BOARD_LFXO_FREQUENCY 32768 /* 32MHz crystal on board */ +#define BOARD_ULFRCO_FREQUNCY 1000 /* Ultra low frequency oscillator */ /* HFCLK - High Frequency Clock * @@ -110,9 +112,13 @@ * LFRCO is disabled from reset. The selection is configured using the LFA * field in CMU_LFCLKSEL. The HFCORECLK/2 setting allows the Low Energy A * Peripherals to be used as high-frequency peripherals. + * + * Use _CMU_LFCLKSEL_LFA_DISABLED to disable + * ULFRCO is a special case. */ #define BOARD_LFACLKSEL _CMU_LFCLKSEL_LFA_LFXO +#undef BOARD_LFACLK_ULFRCO #define BOARD_LFACLK_FREQUENCY BOARD_LFXO_FREQUENCY /* LFBCLK - Low Frequency B Clock @@ -123,9 +129,13 @@ * LFRCO is disabled from reset. The selection is configured using the LFB * field in CMU_LFCLKSEL. The HFCORECLK/2 setting allows the Low Energy B * Peripherals to be used as high-frequency peripherals. + * + * Use _CMU_LFCLKSEL_LFB_DISABLED to disable + * ULFRCO is a special case. */ #define BOARD_LFBCLKSEL _CMU_LFCLKSEL_LFB_LFXO +#undef BOARD_LFBCLK_ULFRCO #define BOARD_LFBCLK_FREQUENCY BOARD_LFXO_FREQUENCY /* PCNTnCLK - Pulse Counter n Clock |