mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
STM32 Tiny: Rename files for better conformance to naming conventions
This commit is contained in:
@@ -41,22 +41,22 @@ CFLAGS += -I$(TOPDIR)/sched
|
|||||||
ASRCS =
|
ASRCS =
|
||||||
AOBJS = $(ASRCS:.S=$(OBJEXT))
|
AOBJS = $(ASRCS:.S=$(OBJEXT))
|
||||||
|
|
||||||
CSRCS = up_boot.c up_leds.c up_spi.c up_usbdev.c
|
CSRCS = stm32_boot.c stm32_leds.c stm32_spi.c stm32_usbdev.c
|
||||||
|
|
||||||
ifeq ($(CONFIG_PWM),y)
|
ifeq ($(CONFIG_PWM),y)
|
||||||
CSRCS += up_pwm.c
|
CSRCS += stm32_pwm.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_WL_NRF24L01),y)
|
ifeq ($(CONFIG_WL_NRF24L01),y)
|
||||||
CSRCS += up_wireless.c
|
CSRCS += stm32_wireless.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_NSH_ARCHINIT),y)
|
ifeq ($(CONFIG_NSH_ARCHINIT),y)
|
||||||
CSRCS += up_nsh.c
|
CSRCS += stm32_nsh.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_WATCHDOG),y)
|
ifeq ($(CONFIG_WATCHDOG),y)
|
||||||
CSRCS += up_watchdog.c
|
CSRCS += stm32_watchdog.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
COBJS = $(CSRCS:.c=$(OBJEXT))
|
COBJS = $(CSRCS:.c=$(OBJEXT))
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* configs/stm32_tiny/src/up_boot.c
|
* configs/stm32_tiny/src/stm32_boot.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2009, 2011, 2013, 2015 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2009, 2011, 2013, 2015 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* configs/stm32_tiny/src/up_leds.c
|
* configs/stm32_tiny/src/stm32_leds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2009, 2011, 2013, 2015 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2009, 2011, 2013, 2015 Gregory Nutt. All rights reserved.
|
||||||
* Author: Laurent Latil <laurent@latil.nom.fr>
|
* Author: Laurent Latil <laurent@latil.nom.fr>
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* config/stm32_tiny/src/up_nsh.c
|
* config/stm32_tiny/src/stm32_nsh.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2009, 2011, 2013 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2009, 2011, 2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
#include "stm32_tiny-internal.h"
|
#include "stm32_tiny-internal.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-Processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@@ -67,7 +67,7 @@ int nsh_archinitialize(void)
|
|||||||
{
|
{
|
||||||
#if defined(CONFIG_WL_NRF24L01)
|
#if defined(CONFIG_WL_NRF24L01)
|
||||||
syslog(LOG_INFO, "Register the nRF24L01 module");
|
syslog(LOG_INFO, "Register the nRF24L01 module");
|
||||||
up_wlinitialize();
|
stm32_wlinitialize();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* configs/stm32_tiny/src/up_pwm.c
|
* configs/stm32_tiny/src/stm32_pwm.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
#include "stm32_tiny-internal.h"
|
#include "stm32_tiny-internal.h"
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Definitions
|
* Pre-processor Definitions
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
/* Configuration *******************************************************************/
|
/* Configuration *******************************************************************/
|
||||||
/* PWM
|
/* PWM
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* configs/stm32_tiny/src/up_spi.c
|
* configs/stm32_tiny/src/stm32_spi.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2009, 2011-2013 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2009, 2011-2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
@@ -55,7 +55,7 @@
|
|||||||
#if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2)
|
#if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2)
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Definitions
|
* Pre-processor Definitions
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG too) */
|
/* Enables debug output from this file (needs CONFIG_DEBUG too) */
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Definitions
|
* Pre-processor Definitions
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/* How many SPI modules does this chip support? The LM3S6918 supports 2 SPI
|
/* How many SPI modules does this chip support? The LM3S6918 supports 2 SPI
|
||||||
@@ -134,14 +134,14 @@ extern void stm32_spiinitialize(void);
|
|||||||
extern void stm32_usbinitialize(void);
|
extern void stm32_usbinitialize(void);
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: up_wlinitialize
|
* Name: stm32_wlinitialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Called to configure wireless module (nRF24L01).
|
* Called to configure wireless module (nRF24L01).
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
extern void up_wlinitialize(void);
|
extern void stm32_wlinitialize(void);
|
||||||
|
|
||||||
#endif /* __ASSEMBLY__ */
|
#endif /* __ASSEMBLY__ */
|
||||||
#endif /* __CONFIGS_HYMINI_STM32V_INTERNAL_H */
|
#endif /* __CONFIGS_HYMINI_STM32V_INTERNAL_H */
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* configs/stm32_tiny/src/up_usbdev.c
|
* configs/stm32_tiny/src/stm32_usbdev.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2009-2011, 2013 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2009-2011, 2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
#include "stm32_tiny-internal.h"
|
#include "stm32_tiny-internal.h"
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Definitions
|
* Pre-processor Definitions
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* configs/stm_tiny/src/up_watchdog.c
|
* configs/stm_tiny/src/stm32_watchdog.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
#ifdef CONFIG_WATCHDOG
|
#ifdef CONFIG_WATCHDOG
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Definitions
|
* Pre-processor Definitions
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
/* Configuration *******************************************************************/
|
/* Configuration *******************************************************************/
|
||||||
/* Wathdog hardware should be enabled */
|
/* Wathdog hardware should be enabled */
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* configs/stm32_tiny/src/up_wireless.c
|
* configs/stm32_tiny/src/stm32_wireless.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2009, 2013 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2009, 2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Laurent Latil <laurent@latil.nom.fr>
|
* Author: Laurent Latil <laurent@latil.nom.fr>
|
||||||
@@ -95,7 +95,7 @@ static void stm32tiny_wl_chip_enable(bool enable)
|
|||||||
* Public Functions
|
* Public Functions
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
void up_wlinitialize(void)
|
void stm32_wlinitialize(void)
|
||||||
{
|
{
|
||||||
# ifndef CONFIG_STM32_SPI2
|
# ifndef CONFIG_STM32_SPI2
|
||||||
# error "STM32_SPI2 is required to support nRF24L01 module on this board"
|
# error "STM32_SPI2 is required to support nRF24L01 module on this board"
|
||||||
Reference in New Issue
Block a user