summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/lpc313x/lpc313x_cgudrvr.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-30 18:18:16 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-30 18:18:16 +0000
commitc25666adf284ff77a9bd0b0d9cebdb19f5670569 (patch)
treea012fcad86bef959ea2c094107bde198b0aab77d /nuttx/arch/arm/src/lpc313x/lpc313x_cgudrvr.h
parenteec25d29ad35d963df61f88c95495bab453282b0 (diff)
downloadpx4-nuttx-c25666adf284ff77a9bd0b0d9cebdb19f5670569.tar.gz
px4-nuttx-c25666adf284ff77a9bd0b0d9cebdb19f5670569.tar.bz2
px4-nuttx-c25666adf284ff77a9bd0b0d9cebdb19f5670569.zip
Add function to change fract dividers
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2466 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc313x/lpc313x_cgudrvr.h')
-rwxr-xr-xnuttx/arch/arm/src/lpc313x/lpc313x_cgudrvr.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/lpc313x/lpc313x_cgudrvr.h b/nuttx/arch/arm/src/lpc313x/lpc313x_cgudrvr.h
index b4825a12e..91eb6a052 100755
--- a/nuttx/arch/arm/src/lpc313x/lpc313x_cgudrvr.h
+++ b/nuttx/arch/arm/src/lpc313x/lpc313x_cgudrvr.h
@@ -646,7 +646,9 @@ EXTERN void lpc313x_clkinit(const struct lpc313x_clkinit_s* cfg);
* Name: lpc313x_fdivinit
*
* Description:
- * Enable and configure (or disable) a fractional divider.
+ * Enable and configure (or disable) a fractional divider. For
+ * internal us only... see lpc313x_setfdiv() the externally usable
+ * function.
*
************************************************************************/
@@ -654,6 +656,19 @@ EXTERN uint32_t lpc313x_fdivinit(int fdcndx,
const struct lpc313x_fdivconfig_s *fdiv,
bool enable);
+/************************************************************************
+ * Name: lpc313x_setfdiv
+ *
+ * Description:
+ * Set/reset subdomain frequency containing the specified clock using
+ * the provided divider settings
+ *
+ ************************************************************************/
+
+EXTERN void lpc313x_setfdiv(enum lpc313x_domainid_e dmnid,
+ enum lpc313x_clockid_e clkid,
+ const struct lpc313x_subdomainconfig_s *fdiv);
+
/****************************************************************************
* Name: lpc313x_pllconfig
*