summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/lpc313x/lpc313x_bcrndx.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/arm/src/lpc313x/lpc313x_bcrndx.c')
-rwxr-xr-xnuttx/arch/arm/src/lpc313x/lpc313x_bcrndx.c20
1 files changed, 5 insertions, 15 deletions
diff --git a/nuttx/arch/arm/src/lpc313x/lpc313x_bcrndx.c b/nuttx/arch/arm/src/lpc313x/lpc313x_bcrndx.c
index 359301767..873712fd8 100755
--- a/nuttx/arch/arm/src/lpc313x/lpc313x_bcrndx.c
+++ b/nuttx/arch/arm/src/lpc313x/lpc313x_bcrndx.c
@@ -64,26 +64,16 @@
************************************************************************/
/************************************************************************
- * Name: lp313x_esrndx
+ * Name: lp313x_bcrndx
*
* Description:
- * Given a clock ID, return the index of the corresponding ESR
- * register (or ESRNDX_INVALID if there is no ESR associated with
- * this clock ID). Indexing of ESRs differs slightly from the clock
- * ID: There are 92 clock IDs but only 89 ESR regisers. There are no
- * ESR registers for :
- *
- *
- * CLKID_I2SRXBCK0 Clock ID 87: I2SRX_BCK0
- * CLKID_I2SRXBCK1, Clock ID 88: I2SRX_BCK1
- *
- * and
- *
- * CLKID_SYSCLKO Clock ID 91: SYSCLK_O
+ * Only 5 of the 12 domains have an associated BCR register. This
+ * function returns the index to the associated BCR register (if any)
+ * or BCRNDX_INVALID otherwise.
*
************************************************************************/
-int lp313x_ncrndx(enum lpc313x_domainid_e dmnid)
+int lp313x_bcrndx(enum lpc313x_domainid_e dmnid)
{
switch (dmnid)
{