This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 6f5537eae25578d802e6b651170e2b52ad4a8da9 Author: Alin Jerpelea <[email protected]> AuthorDate: Fri Apr 9 12:58:07 2021 +0200 arch: lpc2378: Fix for Mixed Case Identifier errors Fix for Mixed Case Identifier errors reported by nxstyle tool Signed-off-by: Alin Jerpelea <[email protected]> --- arch/arm/src/lpc2378/lpc23xx_head.S | 4 ++-- arch/arm/src/lpc2378/lpc23xx_io.c | 4 ++-- arch/arm/src/lpc2378/lpc23xx_pllsetup.c | 18 +++++++++--------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/arch/arm/src/lpc2378/lpc23xx_head.S b/arch/arm/src/lpc2378/lpc23xx_head.S index 3042631..bc11ed0 100644 --- a/arch/arm/src/lpc2378/lpc23xx_head.S +++ b/arch/arm/src/lpc2378/lpc23xx_head.S @@ -137,8 +137,8 @@ __start: /* Call lowlevel init C-function */ - .extern ConfigurePLL - ldr r0, =ConfigurePLL + .extern configure_pll + ldr r0, =configure_pll mov lr, pc bx r0 diff --git a/arch/arm/src/lpc2378/lpc23xx_io.c b/arch/arm/src/lpc2378/lpc23xx_io.c index 509a785..c824e1d 100644 --- a/arch/arm/src/lpc2378/lpc23xx_io.c +++ b/arch/arm/src/lpc2378/lpc23xx_io.c @@ -53,14 +53,14 @@ ****************************************************************************/ /**************************************************************************** - * Name: IO_Init() + * Name: io_init() * * Description: * Initialize the target board before running the main() * ****************************************************************************/ -void IO_Init(void) +void io_init(void) { uint32_t regval; diff --git a/arch/arm/src/lpc2378/lpc23xx_pllsetup.c b/arch/arm/src/lpc2378/lpc23xx_pllsetup.c index ca9de41..5aa3810 100644 --- a/arch/arm/src/lpc2378/lpc23xx_pllsetup.c +++ b/arch/arm/src/lpc2378/lpc23xx_pllsetup.c @@ -70,7 +70,7 @@ #include "lpc23xx_pinsel.h" #include "lpc23xx_scb.h" -void IO_Init(void); +void io_init(void); /**************************************************************************** * Pre-processor Definitions @@ -163,13 +163,13 @@ static inline void up_scbpllfeed(void) } /**************************************************************************** - * Name: ConfigurePLL + * Name: configure_pll ****************************************************************************/ -void ConfigurePLL(void) +void configure_pll(void) { - uint32_t MSel; - uint32_t NSel; + uint32_t m_sel; + uint32_t n_sel; /* LPC2378 Rev.'-' errata Enable the Ethernet block to enable 16k EnetRAM */ @@ -232,9 +232,9 @@ void ConfigurePLL(void) while ((SCB_PLLSTAT & (1 << 26)) == 0); - MSel = SCB_PLLSTAT & 0x00007fff; - NSel = (SCB_PLLSTAT & 0x00ff0000) >> 16; - while ((MSel != PLL_M) && (NSel != PLL_N)); + m_sel = SCB_PLLSTAT & 0x00007fff; + n_sel = (SCB_PLLSTAT & 0x00ff0000) >> 16; + while ((m_sel != PLL_M) && (n_sel != PLL_N)); /* Enable and connect */ @@ -255,7 +255,7 @@ void ConfigurePLL(void) SCB_SCS |= 0x01; - IO_Init(); + io_init(); return; }
