Fix typos
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2817 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
b38f045d15
commit
e432b89abf
@ -1,7 +1,7 @@
|
||||
/************************************************************************
|
||||
* arch/arm/src/lpc313x/lpc313x_bcrndx.c
|
||||
*
|
||||
* Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* References:
|
||||
@ -64,7 +64,7 @@
|
||||
************************************************************************/
|
||||
|
||||
/************************************************************************
|
||||
* Name: lp313x_bcrndx
|
||||
* Name: lpc313x_bcrndx
|
||||
*
|
||||
* Description:
|
||||
* Only 5 of the 12 domains have an associated BCR register. This
|
||||
@ -73,7 +73,7 @@
|
||||
*
|
||||
************************************************************************/
|
||||
|
||||
int lp313x_bcrndx(enum lpc313x_domainid_e dmnid)
|
||||
int lpc313x_bcrndx(enum lpc313x_domainid_e dmnid)
|
||||
{
|
||||
switch (dmnid)
|
||||
{
|
||||
|
@ -721,7 +721,7 @@ EXTERN void lpc313x_softreset(enum lpc313x_resetid_e resetid);
|
||||
EXTERN enum lpc313x_domainid_e lpc313x_clkdomain(enum lpc313x_clockid_e clkid);
|
||||
|
||||
/************************************************************************
|
||||
* Name: lp313x_esrndx
|
||||
* Name: lpc313x_esrndx
|
||||
*
|
||||
* Description:
|
||||
* Given a clock ID, return the index of the corresponding ESR
|
||||
@ -740,10 +740,10 @@ EXTERN enum lpc313x_domainid_e lpc313x_clkdomain(enum lpc313x_clockid_e clkid);
|
||||
*
|
||||
************************************************************************/
|
||||
|
||||
EXTERN int lp313x_esrndx(enum lpc313x_clockid_e clkid);
|
||||
EXTERN int lpc313x_esrndx(enum lpc313x_clockid_e clkid);
|
||||
|
||||
/************************************************************************
|
||||
* Name: lp313x_bcrndx
|
||||
* Name: lpc313x_bcrndx
|
||||
*
|
||||
* Description:
|
||||
* Only 5 of the 12 domains have an associated BCR register. This
|
||||
@ -752,7 +752,7 @@ EXTERN int lp313x_esrndx(enum lpc313x_clockid_e clkid);
|
||||
*
|
||||
************************************************************************/
|
||||
|
||||
EXTERN int lp313x_bcrndx(enum lpc313x_domainid_e dmnid);
|
||||
EXTERN int lpc313x_bcrndx(enum lpc313x_domainid_e dmnid);
|
||||
|
||||
/************************************************************************
|
||||
* Name: lpc313x_fdcndx
|
||||
|
@ -1,7 +1,7 @@
|
||||
/************************************************************************************
|
||||
* arch/arm/src/lpc313x/lpc313x_clkinit.c
|
||||
*
|
||||
* Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@ -95,7 +95,7 @@ static void lpc313x_domaininit(struct lpc313x_domainconfig_s* dmn)
|
||||
uint32_t regval;
|
||||
int fdndx;
|
||||
int clkndx;
|
||||
int bcrndx = lp313x_bcrndx(dmn->dmnid);
|
||||
int bcrndx = lpc313x_bcrndx(dmn->dmnid);
|
||||
int esrndx;
|
||||
|
||||
if (bcrndx != BCRNDX_INVALID)
|
||||
@ -126,7 +126,7 @@ static void lpc313x_domaininit(struct lpc313x_domainconfig_s* dmn)
|
||||
{
|
||||
/* Does this clock have an ESR register? */
|
||||
|
||||
esrndx = lp313x_esrndx((enum lpc313x_clockid_e)(clkndx + dmn->clk1));
|
||||
esrndx = lpc313x_esrndx((enum lpc313x_clockid_e)(clkndx + dmn->clk1));
|
||||
if (esrndx != ESRNDX_INVALID)
|
||||
{
|
||||
/* Yes.. Check if this clock belongs to this sub-domain */
|
||||
|
@ -1,7 +1,7 @@
|
||||
/************************************************************************
|
||||
* arch/arm/src/lpc313x/lpc313x_esrndx.c
|
||||
*
|
||||
* Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* References:
|
||||
@ -64,7 +64,7 @@
|
||||
************************************************************************/
|
||||
|
||||
/************************************************************************
|
||||
* Name: lp313x_esrndx
|
||||
* Name: lpc313x_esrndx
|
||||
*
|
||||
* Description:
|
||||
* Given a clock ID, return the index of the corresponding ESR
|
||||
@ -83,7 +83,7 @@
|
||||
*
|
||||
************************************************************************/
|
||||
|
||||
int lp313x_esrndx(enum lpc313x_clockid_e clkid)
|
||||
int lpc313x_esrndx(enum lpc313x_clockid_e clkid)
|
||||
{
|
||||
int esrndx = (int)clkid;
|
||||
|
||||
|
@ -104,7 +104,7 @@ int lpc313x_fdcndx(enum lpc313x_clockid_e clkid, enum lpc313x_domainid_e dmnid)
|
||||
|
||||
/* Check if there is an ESR register associate with this clock ID */
|
||||
|
||||
esrndx = lp313x_esrndx(clkid);
|
||||
esrndx = lpc313x_esrndx(clkid);
|
||||
if (esrndx != ESRNDX_INVALID)
|
||||
{
|
||||
/* Read the clock's ESR to get the fractional divider */
|
||||
|
@ -91,7 +91,7 @@ void lpc313x_resetclks(void)
|
||||
|
||||
/* Check if the domain has a BCR */
|
||||
|
||||
bcrndx = lp313x_bcrndx((enum lpc313x_domainid_e)i);
|
||||
bcrndx = lpc313x_bcrndx((enum lpc313x_domainid_e)i);
|
||||
if (bcrndx != BCRNDX_INVALID)
|
||||
{
|
||||
/* Yes.. disable all BCRs */
|
||||
@ -106,7 +106,7 @@ void lpc313x_resetclks(void)
|
||||
{
|
||||
/* Check if this clock has an ESR register */
|
||||
|
||||
esrndx = lp313x_esrndx((enum lpc313x_clockid_e)i);
|
||||
esrndx = lpc313x_esrndx((enum lpc313x_clockid_e)i);
|
||||
if (esrndx != ESRNDX_INVALID)
|
||||
{
|
||||
/* Yes.. Clear the clocks ESR to deselect fractional divider */
|
||||
|
@ -106,7 +106,7 @@ void lpc313x_setfdiv(enum lpc313x_domainid_e dmnid,
|
||||
* have a BCR?
|
||||
*/
|
||||
|
||||
bcrndx = lp313x_bcrndx(dmnid);
|
||||
bcrndx = lpc313x_bcrndx(dmnid);
|
||||
if (bcrndx != BCRNDX_INVALID)
|
||||
{
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user