summaryrefslogtreecommitdiff
path: root/nuttx/configs/stm3210e-eval
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-11-28 11:35:47 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-11-28 11:35:47 -0600
commit6c86a2ed89963b06d368f9248b4a67151e30450c (patch)
tree20a65d478d995d10ff29b05442161b8e546b0ae5 /nuttx/configs/stm3210e-eval
parent11bc2642abf2559fd2c64ff5cbd9432761bdf6e0 (diff)
downloadnuttx-6c86a2ed89963b06d368f9248b4a67151e30450c.tar.gz
nuttx-6c86a2ed89963b06d368f9248b4a67151e30450c.tar.bz2
nuttx-6c86a2ed89963b06d368f9248b4a67151e30450c.zip
STM3210E-EVAL: Rename files for compatibility with current standards
Diffstat (limited to 'nuttx/configs/stm3210e-eval')
-rw-r--r--nuttx/configs/stm3210e-eval/src/Makefile50
-rw-r--r--nuttx/configs/stm3210e-eval/src/stm3210e-eval.h (renamed from nuttx/configs/stm3210e-eval/src/stm3210e-internal.h)19
-rw-r--r--nuttx/configs/stm3210e-eval/src/stm32_adc.c (renamed from nuttx/configs/stm3210e-eval/src/up_adc.c)5
-rw-r--r--nuttx/configs/stm3210e-eval/src/stm32_boot.c (renamed from nuttx/configs/stm3210e-eval/src/up_boot.c)5
-rw-r--r--nuttx/configs/stm3210e-eval/src/stm32_buttons.c (renamed from nuttx/configs/stm3210e-eval/src/up_buttons.c)4
-rw-r--r--nuttx/configs/stm3210e-eval/src/stm32_can.c (renamed from nuttx/configs/stm3210e-eval/src/up_can.c)5
-rw-r--r--nuttx/configs/stm3210e-eval/src/stm32_composite.c (renamed from nuttx/configs/stm3210e-eval/src/up_composite.c)4
-rw-r--r--nuttx/configs/stm3210e-eval/src/stm32_deselectlcd.c (renamed from nuttx/configs/stm3210e-eval/src/up_deselectlcd.c)5
-rw-r--r--nuttx/configs/stm3210e-eval/src/stm32_deselectnor.c (renamed from nuttx/configs/stm3210e-eval/src/up_deselectnor.c)5
-rw-r--r--nuttx/configs/stm3210e-eval/src/stm32_deselectsram.c (renamed from nuttx/configs/stm3210e-eval/src/up_deselectsram.c)5
-rw-r--r--nuttx/configs/stm3210e-eval/src/stm32_extcontext.c (renamed from nuttx/configs/stm3210e-eval/src/up_extcontext.c)5
-rw-r--r--nuttx/configs/stm3210e-eval/src/stm32_extmem.c (renamed from nuttx/configs/stm3210e-eval/src/up_extmem.c)5
-rw-r--r--nuttx/configs/stm3210e-eval/src/stm32_idle.c (renamed from nuttx/configs/stm3210e-eval/src/up_idle.c)37
-rw-r--r--nuttx/configs/stm3210e-eval/src/stm32_lcd.c (renamed from nuttx/configs/stm3210e-eval/src/up_lcd.c)5
-rw-r--r--nuttx/configs/stm3210e-eval/src/stm32_leds.c (renamed from nuttx/configs/stm3210e-eval/src/up_leds.c)9
-rw-r--r--nuttx/configs/stm3210e-eval/src/stm32_lm75.c (renamed from nuttx/configs/stm3210e-eval/src/up_lm75.c)5
-rw-r--r--nuttx/configs/stm3210e-eval/src/stm32_nsh.c (renamed from nuttx/configs/stm3210e-eval/src/up_nsh.c)3
-rw-r--r--nuttx/configs/stm3210e-eval/src/stm32_pm.c (renamed from nuttx/configs/stm3210e-eval/src/up_pm.c)9
-rw-r--r--nuttx/configs/stm3210e-eval/src/stm32_pmbuttons.c (renamed from nuttx/configs/stm3210e-eval/src/up_pmbuttons.c)9
-rw-r--r--nuttx/configs/stm3210e-eval/src/stm32_selectlcd.c (renamed from nuttx/configs/stm3210e-eval/src/up_selectlcd.c)5
-rw-r--r--nuttx/configs/stm3210e-eval/src/stm32_selectnor.c (renamed from nuttx/configs/stm3210e-eval/src/up_selectnor.c)5
-rw-r--r--nuttx/configs/stm3210e-eval/src/stm32_selectsram.c (renamed from nuttx/configs/stm3210e-eval/src/up_selectsram.c)5
-rw-r--r--nuttx/configs/stm3210e-eval/src/stm32_spi.c (renamed from nuttx/configs/stm3210e-eval/src/up_spi.c)5
-rw-r--r--nuttx/configs/stm3210e-eval/src/stm32_usbdev.c (renamed from nuttx/configs/stm3210e-eval/src/up_usbdev.c)5
-rw-r--r--nuttx/configs/stm3210e-eval/src/stm32_usbmsc.c (renamed from nuttx/configs/stm3210e-eval/src/up_usbmsc.c)2
-rw-r--r--nuttx/configs/stm3210e-eval/src/stm32_watchdog.c (renamed from nuttx/configs/stm3210e-eval/src/up_watchdog.c)3
26 files changed, 101 insertions, 123 deletions
diff --git a/nuttx/configs/stm3210e-eval/src/Makefile b/nuttx/configs/stm3210e-eval/src/Makefile
index b84a94386..2624e3a31 100644
--- a/nuttx/configs/stm3210e-eval/src/Makefile
+++ b/nuttx/configs/stm3210e-eval/src/Makefile
@@ -35,71 +35,71 @@
-include $(TOPDIR)/Make.defs
-CFLAGS += -I$(TOPDIR)/sched
+CFLAGS += -I$(TOPDIR)/sched
-ASRCS =
-AOBJS = $(ASRCS:.S=$(OBJEXT))
+ASRCS =
+AOBJS = $(ASRCS:.S=$(OBJEXT))
-CSRCS = up_boot.c up_leds.c up_buttons.c up_spi.c up_usbdev.c
+CSRCS = stm32_boot.c stm32_leds.c stm32_buttons.c stm32_spi.c stm32_usbdev.c
ifeq ($(CONFIG_STM32_FSMC),y)
-CSRCS += up_lcd.c up_extcontext.c up_extmem.c up_selectnor.c \
- up_deselectnor.c up_selectsram.c up_deselectsram.c \
- up_selectlcd.c up_deselectlcd.c
+CSRCS += stm32_lcd.c stm32_extcontext.c stm32_extmem.c stm32_selectnor.c
+CSRCS += stm32_deselectnor.c stm32_selectsram.c stm32_deselectsram.c
+CSRCS += stm32_selectlcd.c stm32_deselectlcd.c
endif
ifeq ($(CONFIG_NSH_ARCHINIT),y)
-CSRCS += up_nsh.c
+CSRCS += stm32_nsh.c
endif
ifeq ($(CONFIG_ADC),y)
-CSRCS += up_adc.c
+CSRCS += stm32_adc.c
endif
ifeq ($(CONFIG_USBMSC),y)
-CSRCS += up_usbmsc.c
+CSRCS += stm32_usbmsc.c
endif
ifeq ($(CONFIG_USBDEV_COMPOSITE),y)
-CSRCS += up_composite.c
+CSRCS += stm32_composite.c
endif
ifeq ($(CONFIG_I2C_LM75),y)
-CSRCS += up_lm75.c
+CSRCS += stm32_lm75.c
endif
ifeq ($(CONFIG_CAN),y)
-CSRCS += up_can.c
+CSRCS += stm32_can.c
endif
ifeq ($(CONFIG_WATCHDOG),y)
-CSRCS += up_watchdog.c
+CSRCS += stm32_watchdog.c
endif
ifeq ($(CONFIG_ARCH_CUSTOM_PMINIT),y)
-CSRCS += up_pm.c
+CSRCS += stm32_pm.c
endif
ifeq ($(CONFIG_PM_BUTTONS),y)
-CSRCS += up_pmbuttons.c
+CSRCS += stm32_pmbuttons.c
endif
ifeq ($(CONFIG_ARCH_IDLE_CUSTOM),y)
-CSRCS += up_idle.c
+CSRCS += stm32_idle.c
endif
-COBJS = $(CSRCS:.c=$(OBJEXT))
+COBJS = $(CSRCS:.c=$(OBJEXT))
-SRCS = $(ASRCS) $(CSRCS)
-OBJS = $(AOBJS) $(COBJS)
+SRCS = $(ASRCS) $(CSRCS)
+OBJS = $(AOBJS) $(COBJS)
-ARCH_SRCDIR = $(TOPDIR)/arch/$(CONFIG_ARCH)/src
+ARCH_SRCDIR = $(TOPDIR)/arch/$(CONFIG_ARCH)/src
ifeq ($(WINTOOL),y)
- CFLAGS += -I "${shell cygpath -w $(ARCH_SRCDIR)/chip}" \
- -I "${shell cygpath -w $(ARCH_SRCDIR)/common}" \
- -I "${shell cygpath -w $(ARCH_SRCDIR)/armv7-m}"
+ CFLAGS += -I "${shell cygpath -w $(ARCH_SRCDIR)/chip}" \
+ -I "${shell cygpath -w $(ARCH_SRCDIR)/common}" \
+ -I "${shell cygpath -w $(ARCH_SRCDIR)/armv7-m}"
else
- CFLAGS += -I$(ARCH_SRCDIR)/chip -I$(ARCH_SRCDIR)/common -I$(ARCH_SRCDIR)/armv7-m
+ CFLAGS += -I$(ARCH_SRCDIR)/chip -I$(ARCH_SRCDIR)/common -I$(ARCH_SRCDIR)/armv7-m
endif
all: libboard$(LIBEXT)
diff --git a/nuttx/configs/stm3210e-eval/src/stm3210e-internal.h b/nuttx/configs/stm3210e-eval/src/stm3210e-eval.h
index fb2180d59..a210def03 100644
--- a/nuttx/configs/stm3210e-eval/src/stm3210e-internal.h
+++ b/nuttx/configs/stm3210e-eval/src/stm3210e-eval.h
@@ -1,6 +1,5 @@
/************************************************************************************
- * configs/stm3210e_eval/src/stm3210e_internal.h
- * arch/arm/src/board/stm3210e_internal.n
+ * configs/stm3210e_eval/src/stm3210e-eval.h
*
* Copyright (C) 2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -34,8 +33,8 @@
*
************************************************************************************/
-#ifndef __CONFIGS_STM3210E_EVAL_SRC_STM3210E_INTERNAL_H
-#define __CONFIGS_STM3210E_EVAL_SRC_STM3210E_INTERNAL_H
+#ifndef __CONFIGS_STM3210E_EVAL_SRC_STM3210E_EVAL_H
+#define __CONFIGS_STM3210E_EVAL_SRC_STM3210E_EVAL_H
/************************************************************************************
* Included Files
@@ -46,7 +45,7 @@
#include <stdint.h>
/************************************************************************************
- * Definitions
+ * Pre-processor Definitions
************************************************************************************/
/* How many SPI modules does this chip support? Most support 2 SPI modules (others
@@ -293,7 +292,7 @@ void stm32_deselectlcd(void);
#endif /* CONFIG_STM32_FSMC */
/************************************************************************************
- * Name: up_ledpminitialize
+ * Name: stm32_ledpminitialize
*
* Description:
* Register the LEDs to receive power management event callbacks
@@ -301,11 +300,11 @@ void stm32_deselectlcd(void);
************************************************************************************/
#if defined(CONFIG_PM) && defined(CONFIG_ARCH_LEDS)
-void up_ledpminitialize(void);
+void stm32_ledpminitialize(void);
#endif
/************************************************************************************
- * Name: up_pmbuttons
+ * Name: stm32_pmbuttons
*
* Description:
* Configure all the buttons of the STM3210e-eval board as EXTI, so any button is
@@ -314,9 +313,9 @@ void up_ledpminitialize(void);
************************************************************************************/
#if defined(CONFIG_PM) && defined(CONFIG_ARCH_IDLE_CUSTOM) && defined(CONFIG_PM_BUTTONS)
-void up_pmbuttons(void);
+void stm32_pmbuttons(void);
#endif
#endif /* __ASSEMBLY__ */
-#endif /* __CONFIGS_STM3210E_EVAL_SRC_STM3210E_INTERNAL_H */
+#endif /* __CONFIGS_STM3210E_EVAL_SRC_STM3210E_EVAL_H */
diff --git a/nuttx/configs/stm3210e-eval/src/up_adc.c b/nuttx/configs/stm3210e-eval/src/stm32_adc.c
index c7c7e0c0a..5bd409023 100644
--- a/nuttx/configs/stm3210e-eval/src/up_adc.c
+++ b/nuttx/configs/stm3210e-eval/src/stm32_adc.c
@@ -1,6 +1,5 @@
/************************************************************************************
- * configs/stm3210e-eval/src/up_adc.c
- * arch/arm/src/board/up_adc.c
+ * configs/stm3210e-eval/src/stm32_adc.c
*
* Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -50,7 +49,7 @@
#include "up_arch.h"
#include "stm32_pwm.h"
-#include "stm3210e-internal.h"
+#include "stm3210e-eval.h"
#ifdef CONFIG_ADC
diff --git a/nuttx/configs/stm3210e-eval/src/up_boot.c b/nuttx/configs/stm3210e-eval/src/stm32_boot.c
index 16e8f22e2..d42451cae 100644
--- a/nuttx/configs/stm3210e-eval/src/up_boot.c
+++ b/nuttx/configs/stm3210e-eval/src/stm32_boot.c
@@ -1,6 +1,5 @@
/************************************************************************************
- * configs/stm3210e-eval/src/up_boot.c
- * arch/arm/src/board/up_boot.c
+ * configs/stm3210e-eval/src/stm32_boot.c
*
* Copyright (C) 2009, 2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -45,7 +44,7 @@
#include <arch/board/board.h>
#include "up_arch.h"
-#include "stm3210e-internal.h"
+#include "stm3210e-eval.h"
/************************************************************************************
* Definitions
diff --git a/nuttx/configs/stm3210e-eval/src/up_buttons.c b/nuttx/configs/stm3210e-eval/src/stm32_buttons.c
index d3bf391ea..845eb5436 100644
--- a/nuttx/configs/stm3210e-eval/src/up_buttons.c
+++ b/nuttx/configs/stm3210e-eval/src/stm32_buttons.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * configs/stm3210e-eval/src/board_buttons.c
+ * configs/stm3210e-eval/src/stm32_buttons.c
*
* Copyright (C) 2009, 2011, 2014 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -44,7 +44,7 @@
#include <nuttx/arch.h>
#include <arch/board/board.h>
-#include "stm3210e-internal.h"
+#include "stm3210e-eval.h"
#ifdef CONFIG_ARCH_BUTTONS
diff --git a/nuttx/configs/stm3210e-eval/src/up_can.c b/nuttx/configs/stm3210e-eval/src/stm32_can.c
index 8868c9324..c35652451 100644
--- a/nuttx/configs/stm3210e-eval/src/up_can.c
+++ b/nuttx/configs/stm3210e-eval/src/stm32_can.c
@@ -1,6 +1,5 @@
/************************************************************************************
- * configs/stm3210e-eval/src/up_can.c
- * arch/arm/src/board/up_can.c
+ * configs/stm3210e-eval/src/stm32_can.c
*
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -51,7 +50,7 @@
#include "stm32.h"
#include "stm32_can.h"
-#include "stm3210e-internal.h"
+#include "stm3210e-eval.h"
#if defined(CONFIG_CAN) && defined(CONFIG_STM32_CAN1)
diff --git a/nuttx/configs/stm3210e-eval/src/up_composite.c b/nuttx/configs/stm3210e-eval/src/stm32_composite.c
index 2581d8213..33118ee58 100644
--- a/nuttx/configs/stm3210e-eval/src/up_composite.c
+++ b/nuttx/configs/stm3210e-eval/src/stm32_composite.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * configs/stm3210e-eval/src/up_composite.c
+ * configs/stm3210e-eval/src/stm32_composite.c
*
* Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -90,7 +90,7 @@
int composite_archinitialize(void)
{
/* If system/composite is built as an NSH command, then SD slot should
- * already have been initialized in nsh_archinitialize() (see up_nsh.c). In
+ * already have been initialized in nsh_archinitialize() (see stm32_nsh.c). In
* this case, there is nothing further to be done here.
*
* NOTE: CONFIG_NSH_BUILTIN_APPS is not a fool-proof indication that NSH
diff --git a/nuttx/configs/stm3210e-eval/src/up_deselectlcd.c b/nuttx/configs/stm3210e-eval/src/stm32_deselectlcd.c
index e81429f3f..b9c155e3d 100644
--- a/nuttx/configs/stm3210e-eval/src/up_deselectlcd.c
+++ b/nuttx/configs/stm3210e-eval/src/stm32_deselectlcd.c
@@ -1,6 +1,5 @@
/************************************************************************************
- * configs/stm3210e-eval/src/up_deselectlcd.c
- * arch/arm/src/board/up_deselectlcd.c
+ * configs/stm3210e-eval/src/stm32_deselectlcd.c
*
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -44,7 +43,7 @@
#include "up_arch.h"
#include "stm32_fsmc.h"
-#include "stm3210e-internal.h"
+#include "stm3210e-eval.h"
#ifdef CONFIG_STM32_FSMC
diff --git a/nuttx/configs/stm3210e-eval/src/up_deselectnor.c b/nuttx/configs/stm3210e-eval/src/stm32_deselectnor.c
index 3aeebb371..a46fb9bde 100644
--- a/nuttx/configs/stm3210e-eval/src/up_deselectnor.c
+++ b/nuttx/configs/stm3210e-eval/src/stm32_deselectnor.c
@@ -1,6 +1,5 @@
/************************************************************************************
- * configs/stm3210e-eval/src/up_deselectnor.c
- * arch/arm/src/board/up_deselectnor.c
+ * configs/stm3210e-eval/src/stm32_deselectnor.c
*
* Copyright (C) 2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -44,7 +43,7 @@
#include "up_arch.h"
#include "stm32_fsmc.h"
-#include "stm3210e-internal.h"
+#include "stm3210e-eval.h"
#ifdef CONFIG_STM32_FSMC
diff --git a/nuttx/configs/stm3210e-eval/src/up_deselectsram.c b/nuttx/configs/stm3210e-eval/src/stm32_deselectsram.c
index 11e51c273..a57cab1f6 100644
--- a/nuttx/configs/stm3210e-eval/src/up_deselectsram.c
+++ b/nuttx/configs/stm3210e-eval/src/stm32_deselectsram.c
@@ -1,6 +1,5 @@
/************************************************************************************
- * configs/stm3210e-eval/src/up_deselectsram.c
- * arch/arm/src/board/up_deselectsram.c
+ * configs/stm3210e-eval/src/stm32_deselectsram.c
*
* Copyright (C) 2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -44,7 +43,7 @@
#include "up_arch.h"
#include "stm32_fsmc.h"
-#include "stm3210e-internal.h"
+#include "stm3210e-eval.h"
#ifdef CONFIG_STM32_FSMC
diff --git a/nuttx/configs/stm3210e-eval/src/up_extcontext.c b/nuttx/configs/stm3210e-eval/src/stm32_extcontext.c
index 07a202f06..9f2155402 100644
--- a/nuttx/configs/stm3210e-eval/src/up_extcontext.c
+++ b/nuttx/configs/stm3210e-eval/src/stm32_extcontext.c
@@ -1,6 +1,5 @@
/************************************************************************************
- * configs/stm3210e-eval/src/up_extcontext.c
- * arch/arm/src/board/up_extcontext.c
+ * configs/stm3210e-eval/src/stm32_extcontext.c
*
* Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -46,7 +45,7 @@
#include "up_arch.h"
#include "stm32.h"
-#include "stm3210e-internal.h"
+#include "stm3210e-eval.h"
#ifdef CONFIG_STM32_FSMC
diff --git a/nuttx/configs/stm3210e-eval/src/up_extmem.c b/nuttx/configs/stm3210e-eval/src/stm32_extmem.c
index d76114abe..27602797b 100644
--- a/nuttx/configs/stm3210e-eval/src/up_extmem.c
+++ b/nuttx/configs/stm3210e-eval/src/stm32_extmem.c
@@ -1,6 +1,5 @@
/************************************************************************************
- * configs/stm3210e-eval/src/up_extmem.c
- * arch/arm/src/board/up_extmem.c
+ * configs/stm3210e-eval/src/stm32_extmem.c
*
* Copyright (C) 2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -52,7 +51,7 @@
#include "stm32_fsmc.h"
#include "stm32_gpio.h"
#include "stm32.h"
-#include "stm3210e-internal.h"
+#include "stm3210e-eval.h"
/************************************************************************************
* Pre-processor Definitions
diff --git a/nuttx/configs/stm3210e-eval/src/up_idle.c b/nuttx/configs/stm3210e-eval/src/stm32_idle.c
index c270b6ed4..84d6032cd 100644
--- a/nuttx/configs/stm3210e-eval/src/up_idle.c
+++ b/nuttx/configs/stm3210e-eval/src/stm32_idle.c
@@ -1,6 +1,5 @@
/****************************************************************************
- * configs/stm3210e-eval/src/up_idle.c
- * arch/arm/src/board/up_idle.c
+ * configs/stm3210e-eval/src/stm32_idle.c
*
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
* Authors: Gregory Nutt <gnutt@nuttx.org>
@@ -57,7 +56,7 @@
#include "stm32_rcc.h"
#include "stm32_exti.h"
-#include "stm3210e-internal.h"
+#include "stm3210e-eval.h"
/****************************************************************************
* Pre-processor Definitions
@@ -135,7 +134,7 @@ static volatile bool g_alarmwakeup; /* Wakeup Alarm indicator */
****************************************************************************/
/****************************************************************************
- * Name: up_alarmcb
+ * Name: stm32_alarmcb
*
* Description:
* RTC alarm callback
@@ -143,7 +142,7 @@ static volatile bool g_alarmwakeup; /* Wakeup Alarm indicator */
****************************************************************************/
#if defined(CONFIG_PM) && defined(CONFIG_RTC_ALARM)
-static void up_alarmcb(void)
+static void stm32_alarmcb(void)
{
/* Note that we were awaken by an alarm */
@@ -152,7 +151,7 @@ static void up_alarmcb(void)
#endif
/****************************************************************************
- * Name: up_alarm_exti
+ * Name: stm32_alarm_exti
*
* Description:
* RTC alarm EXTI interrupt service routine
@@ -160,15 +159,15 @@ static void up_alarmcb(void)
****************************************************************************/
#if defined(CONFIG_PM) && defined(CONFIG_RTC_ALARM)
-static int up_alarm_exti(int irq, FAR void *context)
+static int stm32_alarm_exti(int irq, FAR void *context)
{
- up_alarmcb();
+ stm32_alarmcb();
return OK;
}
#endif
/****************************************************************************
- * Name: up_exti_cancel
+ * Name: stm32_exti_cancel
*
* Description:
* Disable the ALARM EXTI interrupt
@@ -176,14 +175,14 @@ static int up_alarm_exti(int irq, FAR void *context)
****************************************************************************/
#if defined(CONFIG_PM) && defined(CONFIG_RTC_ALARM)
-static void up_exti_cancel(void)
+static void stm32_exti_cancel(void)
{
(void)stm32_exti_alarm(false, false, false, NULL);
}
#endif
/****************************************************************************
- * Name: up_rtc_alarm
+ * Name: stm32_rtc_alarm
*
* Description:
* Set the alarm
@@ -191,7 +190,7 @@ static void up_exti_cancel(void)
****************************************************************************/
#if defined(CONFIG_PM) && defined(CONFIG_RTC_ALARM)
-static int up_rtc_alarm(time_t tv_sec, time_t tv_nsec, bool exti)
+static int stm32_rtc_alarm(time_t tv_sec, time_t tv_nsec, bool exti)
{
struct timespec alarmtime;
int ret;
@@ -202,7 +201,7 @@ static int up_rtc_alarm(time_t tv_sec, time_t tv_nsec, bool exti)
{
/* TODO: Make sure that that is no pending EXTI interrupt */
- (void)stm32_exti_alarm(true, true, true, up_alarm_exti);
+ (void)stm32_exti_alarm(true, true, true, stm32_alarm_exti);
}
/* Configure the RTC alarm to Auto Wake the system */
@@ -227,7 +226,7 @@ static int up_rtc_alarm(time_t tv_sec, time_t tv_nsec, bool exti)
/* Set the alarm */
g_alarmwakeup = false;
- ret = up_rtc_setalarm(&alarmtime, up_alarmcb);
+ ret = up_rtc_setalarm(&alarmtime, stm32_alarmcb);
if (ret < 0)
{
lldbg("Warning: The alarm is already set\n");
@@ -238,7 +237,7 @@ static int up_rtc_alarm(time_t tv_sec, time_t tv_nsec, bool exti)
#endif
/****************************************************************************
- * Name: up_idlepm
+ * Name: stm32_idlepm
*
* Description:
* Perform IDLE state power management.
@@ -246,7 +245,7 @@ static int up_rtc_alarm(time_t tv_sec, time_t tv_nsec, bool exti)
****************************************************************************/
#ifdef CONFIG_PM
-static void up_idlepm(void)
+static void stm32_idlepm(void)
{
static enum pm_state_e oldstate = PM_NORMAL;
enum pm_state_e newstate;
@@ -363,7 +362,7 @@ static void up_idlepm(void)
*/
#ifdef CONFIG_RTC_ALARM
- up_exti_cancel();
+ stm32_exti_cancel();
ret = up_rtc_cancelalarm();
if (ret < 0)
{
@@ -411,7 +410,7 @@ errout:
}
}
#else
-# define up_idlepm()
+# define stm32_idlepm()
#endif /* CONFIG_PM */
/****************************************************************************
@@ -444,7 +443,7 @@ void up_idle(void)
/* Perform IDLE mode power management */
BEGIN_IDLE();
- up_idlepm();
+ stm32_idlepm();
END_IDLE();
#endif
}
diff --git a/nuttx/configs/stm3210e-eval/src/up_lcd.c b/nuttx/configs/stm3210e-eval/src/stm32_lcd.c
index a295b53fc..4168f39a7 100644
--- a/nuttx/configs/stm3210e-eval/src/up_lcd.c
+++ b/nuttx/configs/stm3210e-eval/src/stm32_lcd.c
@@ -1,6 +1,5 @@
/**************************************************************************************
- * configs/stm3210e-eval/src/up_lcd.c
- * arch/arm/src/board/up_lcd.c
+ * configs/stm3210e-eval/src/stm32_lcd.c
*
* Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -76,7 +75,7 @@
#include "up_arch.h"
#include "stm32.h"
-#include "stm3210e-internal.h"
+#include "stm3210e-eval.h"
/**************************************************************************************
* Pre-processor Definitions
diff --git a/nuttx/configs/stm3210e-eval/src/up_leds.c b/nuttx/configs/stm3210e-eval/src/stm32_leds.c
index 06c8ce889..53479a135 100644
--- a/nuttx/configs/stm3210e-eval/src/up_leds.c
+++ b/nuttx/configs/stm3210e-eval/src/stm32_leds.c
@@ -1,6 +1,5 @@
/****************************************************************************
- * configs/stm3210e_eval/src/up_leds.c
- * arch/arm/src/board/up_leds.c
+ * configs/stm3210e_eval/src/stm32_leds.c
*
* Copyright (C) 2009-2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -51,7 +50,7 @@
#include "up_arch.h"
#include "up_internal.h"
#include "stm32.h"
-#include "stm3210e-internal.h"
+#include "stm3210e-eval.h"
/****************************************************************************
* Definitions
@@ -380,11 +379,11 @@ void board_led_off(int led)
}
/****************************************************************************
- * Name: up_ledpminitialize
+ * Name: stm32_ledpminitialize
****************************************************************************/
#ifdef CONFIG_PM
-void up_ledpminitialize(void)
+void stm32_ledpminitialize(void)
{
/* Register to receive power management callbacks */
diff --git a/nuttx/configs/stm3210e-eval/src/up_lm75.c b/nuttx/configs/stm3210e-eval/src/stm32_lm75.c
index d1bb288ff..6a5ee0941 100644
--- a/nuttx/configs/stm3210e-eval/src/up_lm75.c
+++ b/nuttx/configs/stm3210e-eval/src/stm32_lm75.c
@@ -1,6 +1,5 @@
/************************************************************************************
- * configs/stm3210e-eval/src/up_lm75.c
- * arch/arm/src/board/up_lm75.c
+ * configs/stm3210e-eval/src/stm32_lm75.c
*
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -47,7 +46,7 @@
#include "stm32.h"
#include "stm32_i2c.h"
-#include "stm3210e-internal.h"
+#include "stm3210e-eval.h"
#if defined(CONFIG_I2C) && defined(CONFIG_I2C_LM75) && defined(CONFIG_STM32_I2C1)
diff --git a/nuttx/configs/stm3210e-eval/src/up_nsh.c b/nuttx/configs/stm3210e-eval/src/stm32_nsh.c
index 3431676cb..4242d1d0f 100644
--- a/nuttx/configs/stm3210e-eval/src/up_nsh.c
+++ b/nuttx/configs/stm3210e-eval/src/stm32_nsh.c
@@ -1,6 +1,5 @@
/****************************************************************************
- * config/stm3210e_eval/src/up_nsh.c
- * arch/arm/src/board/up_nsh.c
+ * config/stm3210e_eval/src/stm32_nsh.c
*
* Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
diff --git a/nuttx/configs/stm3210e-eval/src/up_pm.c b/nuttx/configs/stm3210e-eval/src/stm32_pm.c
index ab3e526c9..1da3078a9 100644
--- a/nuttx/configs/stm3210e-eval/src/up_pm.c
+++ b/nuttx/configs/stm3210e-eval/src/stm32_pm.c
@@ -1,6 +1,5 @@
/****************************************************************************
- * configs/stm3210e-eval/src/up_pm.c
- * arch/arm/src/board/up_pm.c
+ * configs/stm3210e-eval/src/stm32_pm.c
*
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
* Authors: Gregory Nutt <gnutt@nuttx.org>
@@ -45,7 +44,7 @@
#include "up_internal.h"
#include "stm32_pm.h"
-#include "stm3210e-internal.h"
+#include "stm3210e-eval.h"
#ifdef CONFIG_PM
@@ -96,12 +95,12 @@ void up_pminitialize(void)
#if defined(CONFIG_ARCH_IDLE_CUSTOM) && defined(CONFIG_PM_BUTTONS)
/* Initialize the buttons to wake up the system from low power modes */
- up_pmbuttons();
+ stm32_pmbuttons();
#endif
/* Initialize the LED PM */
- up_ledpminitialize();
+ stm32_ledpminitialize();
}
#endif /* CONFIG_PM */
diff --git a/nuttx/configs/stm3210e-eval/src/up_pmbuttons.c b/nuttx/configs/stm3210e-eval/src/stm32_pmbuttons.c
index 4e35498f1..a042a54e6 100644
--- a/nuttx/configs/stm3210e-eval/src/up_pmbuttons.c
+++ b/nuttx/configs/stm3210e-eval/src/stm32_pmbuttons.c
@@ -1,6 +1,5 @@
/****************************************************************************
- * configs/stm3210e-eval/src/up_pmbuttons.c
- * arch/arm/src/board/up_pmbuttons.c
+ * configs/stm3210e-eval/src/stm32_pmbuttons.c
*
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
* Authors: Gregory Nutt <gnutt@nuttx.org>
@@ -51,7 +50,7 @@
#include "nvic.h"
#include "stm32_pwr.h"
#include "stm32_pm.h"
-#include "stm3210e-internal.h"
+#include "stm3210e-eval.h"
#if defined(CONFIG_PM) && defined(CONFIG_ARCH_IDLE_CUSTOM) && defined(CONFIG_PM_BUTTONS)
@@ -286,7 +285,7 @@ static int button7_handler(int irq, FAR void *context)
****************************************************************************/
/****************************************************************************
- * Name: up_pmbuttons
+ * Name: stm32_pmbuttons
*
* Description:
* Configure all the buttons of the STM3210e-eval board as EXTI,
@@ -294,7 +293,7 @@ static int button7_handler(int irq, FAR void *context)
*
****************************************************************************/
-void up_pmbuttons(void)
+void stm32_pmbuttons(void)
{
/* Initialize the button GPIOs */
diff --git a/nuttx/configs/stm3210e-eval/src/up_selectlcd.c b/nuttx/configs/stm3210e-eval/src/stm32_selectlcd.c
index 3afc79835..003caef85 100644
--- a/nuttx/configs/stm3210e-eval/src/up_selectlcd.c
+++ b/nuttx/configs/stm3210e-eval/src/stm32_selectlcd.c
@@ -1,6 +1,5 @@
/************************************************************************************
- * configs/stm3210e-eval/src/up_selectlcd.c
- * arch/arm/src/board/up_selectlcd.c
+ * configs/stm3210e-eval/src/stm32_selectlcd.c
*
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -47,7 +46,7 @@
#include "up_arch.h"
#include "stm32.h"
-#include "stm3210e-internal.h"
+#include "stm3210e-eval.h"
#ifdef CONFIG_STM32_FSMC
diff --git a/nuttx/configs/stm3210e-eval/src/up_selectnor.c b/nuttx/configs/stm3210e-eval/src/stm32_selectnor.c
index 9ee1ad34f..aa754a97a 100644
--- a/nuttx/configs/stm3210e-eval/src/up_selectnor.c
+++ b/nuttx/configs/stm3210e-eval/src/stm32_selectnor.c
@@ -1,6 +1,5 @@
/************************************************************************************
- * configs/stm3210e-eval/src/up_selectnor.c
- * arch/arm/src/board/up_selectnor.c
+ * configs/stm3210e-eval/src/stm32_selectnor.c
*
* Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -47,7 +46,7 @@
#include "up_arch.h"
#include "stm32.h"
-#include "stm3210e-internal.h"
+#include "stm3210e-eval.h"
#ifdef CONFIG_STM32_FSMC
diff --git a/nuttx/configs/stm3210e-eval/src/up_selectsram.c b/nuttx/configs/stm3210e-eval/src/stm32_selectsram.c
index 3035110c8..b59e68e76 100644
--- a/nuttx/configs/stm3210e-eval/src/up_selectsram.c
+++ b/nuttx/configs/stm3210e-eval/src/stm32_selectsram.c
@@ -1,6 +1,5 @@
/************************************************************************************
- * configs/stm3210e-eval/src/up_selectsram.c
- * arch/arm/src/board/up_selectsram.c
+ * configs/stm3210e-eval/src/stm32_selectsram.c
*
* Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -47,7 +46,7 @@
#include "up_arch.h"
#include "stm32.h"
-#include "stm3210e-internal.h"
+#include "stm3210e-eval.h"
#ifdef CONFIG_STM32_FSMC
diff --git a/nuttx/configs/stm3210e-eval/src/up_spi.c b/nuttx/configs/stm3210e-eval/src/stm32_spi.c
index b34494a09..17ce3523e 100644
--- a/nuttx/configs/stm3210e-eval/src/up_spi.c
+++ b/nuttx/configs/stm3210e-eval/src/stm32_spi.c
@@ -1,6 +1,5 @@
/************************************************************************************
- * configs/stm3210e_eval/src/up_spi.c
- * arch/arm/src/board/up_spi.c
+ * configs/stm3210e_eval/src/stm32_spi.c
*
* Copyright (C) 2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -50,7 +49,7 @@
#include "up_arch.h"
#include "chip.h"
#include "stm32.h"
-#include "stm3210e-internal.h"
+#include "stm3210e-eval.h"
#if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2)
diff --git a/nuttx/configs/stm3210e-eval/src/up_usbdev.c b/nuttx/configs/stm3210e-eval/src/stm32_usbdev.c
index fb472d18f..16647dae6 100644
--- a/nuttx/configs/stm3210e-eval/src/up_usbdev.c
+++ b/nuttx/configs/stm3210e-eval/src/stm32_usbdev.c
@@ -1,6 +1,5 @@
/************************************************************************************
- * configs/stm3210e-eval/src/up_usbdev.c
- * arch/arm/src/board/up_boot.c
+ * configs/stm3210e-eval/src/stm32_usbdev.c
*
* Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -50,7 +49,7 @@
#include "up_arch.h"
#include "stm32.h"
-#include "stm3210e-internal.h"
+#include "stm3210e-eval.h"
/************************************************************************************
* Definitions
diff --git a/nuttx/configs/stm3210e-eval/src/up_usbmsc.c b/nuttx/configs/stm3210e-eval/src/stm32_usbmsc.c
index 3b37744d3..d5c11ba4b 100644
--- a/nuttx/configs/stm3210e-eval/src/up_usbmsc.c
+++ b/nuttx/configs/stm3210e-eval/src/stm32_usbmsc.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * configs/stm3210e-eval/src/up_usbmsc.c
+ * configs/stm3210e-eval/src/stm32_usbmsc.c
*
* Copyright (C) 2009, 2011, 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
diff --git a/nuttx/configs/stm3210e-eval/src/up_watchdog.c b/nuttx/configs/stm3210e-eval/src/stm32_watchdog.c
index 0c09f7549..c44d74bdd 100644
--- a/nuttx/configs/stm3210e-eval/src/up_watchdog.c
+++ b/nuttx/configs/stm3210e-eval/src/stm32_watchdog.c
@@ -1,6 +1,5 @@
/************************************************************************************
- * configs/stm3210e-eval/src/up_watchdog.c
- * arch/arm/src/board/up_watchdog.c
+ * configs/stm3210e-eval/src/stm32_watchdog.c
*
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>