diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-30 15:57:25 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-30 15:57:25 +0000 |
commit | faba0ca69b52e5ec805ea6584741af148df6ed8f (patch) | |
tree | bac268cfb774e9436b513b3a8e990eb82e28c40b /nuttx/arch/arm/src/lpc313x/lpc313x_cgudrvr.h | |
parent | 8c4a58a7675b213eceec58d357315858afd81578 (diff) | |
download | px4-nuttx-faba0ca69b52e5ec805ea6584741af148df6ed8f.tar.gz px4-nuttx-faba0ca69b52e5ec805ea6584741af148df6ed8f.tar.bz2 px4-nuttx-faba0ca69b52e5ec805ea6584741af148df6ed8f.zip |
Add clock initialization
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2463 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc313x/lpc313x_cgudrvr.h')
-rwxr-xr-x | nuttx/arch/arm/src/lpc313x/lpc313x_cgudrvr.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/lpc313x/lpc313x_cgudrvr.h b/nuttx/arch/arm/src/lpc313x/lpc313x_cgudrvr.h index 8d1609656..25088b94f 100755 --- a/nuttx/arch/arm/src/lpc313x/lpc313x_cgudrvr.h +++ b/nuttx/arch/arm/src/lpc313x/lpc313x_cgudrvr.h @@ -497,11 +497,13 @@ struct lpc313x_clkinit_s uint8_t finsel; } domain11; +#if 0 /* Dynamic fractional divider initialization not implemented */ struct { uint16_t sel; struct lpc313x_fdivconfig_s cfg; } dynfdiv[CGU_NDYNFRACDIV]; +#endif }; /* This structure is used to pass PLL configuration data to @@ -619,6 +621,29 @@ EXTERN bool lpc313x_defclk(enum lpc313x_clockid_e clkid); EXTERN void lpc313x_resetclks(void); +/************************************************************************ + * Name: lpc313x_clkinit + * + * Description: + * Initialize all clock domains based on board-specific clock + * configuration data + * + ************************************************************************/ + +EXTERN void lpc313x_clkinit(const struct lpc313x_clkinit_s* cfg); + +/************************************************************************ + * Name: lpc313x_fdivinit + * + * Description: + * Enable and configure (or disable) a fractional divider. + * + ************************************************************************/ + +EXTERN uint32_t lpc313x_fdivinit(int fdcndx, + const struct lpc313x_fdivconfig_s *fdiv, + bool enable); + /**************************************************************************** * Name: lpc313x_pllconfig * |