STM3210E-EVAL: Rename files for compatibility with current standards
This commit is contained in:
parent
1aafbbdc97
commit
b4a85739ef
@ -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)
|
||||
|
@ -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 */
|
||||
|
@ -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
|
||||
|
@ -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
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
@ -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
|
||||
}
|
@ -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
|
@ -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 */
|
||||
|
@ -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)
|
||||
|
@ -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>
|
@ -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 */
|
@ -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 */
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
@ -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>
|
@ -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>
|
Loading…
Reference in New Issue
Block a user