summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/lpc17xx
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-08-06 16:26:01 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-08-06 16:26:01 -0600
commit893d3a9e60609f17026d1eeb774ab993ea393c42 (patch)
treeae0789b7eadbdac15f2b63c67663dd42df397e49 /nuttx/arch/arm/src/lpc17xx
parente42e89d84e13db8feda4056b3e3499a14b065d47 (diff)
downloadnuttx-893d3a9e60609f17026d1eeb774ab993ea393c42.tar.gz
nuttx-893d3a9e60609f17026d1eeb774ab993ea393c42.tar.bz2
nuttx-893d3a9e60609f17026d1eeb774ab993ea393c42.zip
Rename up_timerinit() to up_timer_initailize(); Add prototypes for candidate interfaces for the tickless OS; Don't build existing timer initialization logic if CONFIG_SCHED_TICKLESS is defined.
Diffstat (limited to 'nuttx/arch/arm/src/lpc17xx')
-rw-r--r--nuttx/arch/arm/src/lpc17xx/Make.defs6
-rw-r--r--nuttx/arch/arm/src/lpc17xx/lpc17_timerisr.c4
2 files changed, 7 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/Make.defs b/nuttx/arch/arm/src/lpc17xx/Make.defs
index 5230c9e92..19114864b 100644
--- a/nuttx/arch/arm/src/lpc17xx/Make.defs
+++ b/nuttx/arch/arm/src/lpc17xx/Make.defs
@@ -101,10 +101,14 @@ CHIP_ASRCS =
CHIP_CSRCS = lpc17_allocateheap.c lpc17_clockconfig.c lpc17_clrpend.c
CHIP_CSRCS += lpc17_gpio.c lpc17_i2c.c lpc17_idle.c lpc17_irq.c lpc17_lowputc.c
-CHIP_CSRCS += lpc17_serial.c lpc17_spi.c lpc17_ssp.c lpc17_start.c lpc17_timerisr.c
+CHIP_CSRCS += lpc17_serial.c lpc17_spi.c lpc17_ssp.c lpc17_start.c
# Configuration-dependent LPC17xx files
+ifneq ($(CONFIG_SCHED_TICKLESS),y)
+CHIP_CSRCS += lpc17_timerisr.c
+endif
+
ifeq ($(CONFIG_ARMV7M_CMNVECTOR),y)
CHIP_ASRCS += lpc17_vectors.S
endif
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_timerisr.c b/nuttx/arch/arm/src/lpc17xx/lpc17_timerisr.c
index ffe975e92..4aec2da40 100644
--- a/nuttx/arch/arm/src/lpc17xx/lpc17_timerisr.c
+++ b/nuttx/arch/arm/src/lpc17xx/lpc17_timerisr.c
@@ -108,7 +108,7 @@ int up_timerisr(int irq, uint32_t *regs)
}
/****************************************************************************
- * Function: up_timerinit
+ * Function: up_timer_initialize
*
* Description:
* This function is called during start-up to initialize
@@ -116,7 +116,7 @@ int up_timerisr(int irq, uint32_t *regs)
*
****************************************************************************/
-void up_timerinit(void)
+void up_timer_initialize(void)
{
uint32_t regval;