diff options
Diffstat (limited to 'nuttx/arch/arm/src/lpc313x/lpc313x_freqin.c')
-rwxr-xr-x | nuttx/arch/arm/src/lpc313x/lpc313x_freqin.c | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/nuttx/arch/arm/src/lpc313x/lpc313x_freqin.c b/nuttx/arch/arm/src/lpc313x/lpc313x_freqin.c index 4b44741b8..deec49911 100755 --- a/nuttx/arch/arm/src/lpc313x/lpc313x_freqin.c +++ b/nuttx/arch/arm/src/lpc313x/lpc313x_freqin.c @@ -1,5 +1,5 @@ /**************************************************************************** - * configs/ea3131/src/up_cgu.c + * arch/arm/src/lpc313x/lpc313x_freqin.c * * Copyright (C) 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> @@ -46,25 +46,34 @@ #include "lpc313x_cgudrvr.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ -const int32_t g_boardfreqin[CGU_NFREQIN] = -{ - BOARD_FREQIN_FFAST, /* Index=CGU_FREQIN_FFAST */ - BOARD_FREQIN_I2SRXBCK0, /* Index=CGU_FREQIN_I2SRXBCK0 */ - BOARD_FREQIN_I2SRXWS0, /* Index=CGU_FREQIN_I2SRXWS0 */ - BOARD_FREQIN_I2SRXBCK1, /* Index=CGU_FREQIN_I2SRXBCK1 */ - BOARD_FREQIN_I2SRXWS1, /* Index=CGU_FREQIN_I2SRXWS1 */ - BOARD_FREQIN_HPPLL0, /* Index=CGU_FREQIN_HPPLL0 (Audio/I2S PLL) */ - BOARD_FREQIN_HPPLL1 /* Index=CGU_FREQIN_HPPLL1 (System PLL) */ -}; - /**************************************************************************** * Private Data ****************************************************************************/ /**************************************************************************** + * Public Data + ****************************************************************************/ + +/* This array provides the programmed frequency of every input source. The + * board FFAST input crystal frequency is the only value known initially. + * Additional frequencies will be added to the table as they are determined + */ + +uint32_t g_boardfreqin[CGU_NFREQIN] = +{ + BOARD_FREQIN_FFAST, /* Index=CGU_FREQIN_FFAST */ + 0, /* Index=CGU_FREQIN_I2SRXBCK0 */ + 0, /* Index=CGU_FREQIN_I2SRXWS0 */ + 0, /* Index=CGU_FREQIN_I2SRXBCK1 */ + 0, /* Index=CGU_FREQIN_I2SRXWS1 */ + 0, /* Index=CGU_FREQIN_HPPLL0 (Audio/I2S PLL) */ + 0 /* Index=CGU_FREQIN_HPPLL1 (System PLL) */ +}; + +/**************************************************************************** * Private Functions ****************************************************************************/ |