Changeset 25a8c022 in rtems


Ignore:
Timestamp:
Aug 13, 2012, 9:51:45 AM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
f5db5d2
Parents:
6cfe52f
git-author:
Sebastian Huber <sebastian.huber@…> (08/13/12 09:51:45)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/20/12 08:10:25)
Message:

bsp/lpc32xx: Fix clock name

Rename lpc32xx_dram_clk() in lpc32xx_ddram_clk()

Location:
c/src/lib/libbsp/arm/lpc32xx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/lpc32xx/include/bsp.h

    r6cfe52f r25a8c022  
    137137uint32_t lpc32xx_arm_clk(void);
    138138
    139 uint32_t lpc32xx_dram_clk(void);
     139uint32_t lpc32xx_ddram_clk(void);
    140140
    141141typedef enum {
  • c/src/lib/libbsp/arm/lpc32xx/misc/system-clocks.c

    r6cfe52f r25a8c022  
    119119}
    120120
    121 uint32_t lpc32xx_dram_clk(void)
     121uint32_t lpc32xx_ddram_clk(void)
    122122{
    123123  uint32_t hclkdiv_ctrl = LPC32XX_HCLKDIV_CTRL;
    124124  uint32_t div = HCLK_DIV_DDRAM_CLK_GET(hclkdiv_ctrl);
    125   uint32_t dram_clk = 0;
     125  uint32_t ddram_clk = 0;
    126126
    127127  if (div != 0) {
     
    129129
    130130    if ((pwr_ctrl & PWR_NORMAL_RUN_MODE) != 0) {
    131       dram_clk = lpc32xx_hclkpll_clk();
     131      ddram_clk = lpc32xx_hclkpll_clk();
    132132    } else {
    133       dram_clk = lpc32xx_sysclk();
     133      ddram_clk = lpc32xx_sysclk();
    134134    }
    135135
    136     dram_clk /= div;
     136    ddram_clk /= div;
    137137  }
    138138
    139   return dram_clk;
     139  return ddram_clk;
    140140}
Note: See TracChangeset for help on using the changeset viewer.