Teensy: Rename files for better conformance to naming conventions

This commit is contained in:
Gregory Nutt 2015-03-21 13:41:49 -06:00
parent 212ec2f639
commit 70b576b638
6 changed files with 32 additions and 33 deletions

View File

@ -35,43 +35,43 @@
-include $(TOPDIR)/Make.defs -include $(TOPDIR)/Make.defs
ASRCS = ASRCS =
CSRCS = up_boot.c CSRCS = at90usb_boot.c
ifeq ($(CONFIG_ARCH_LEDS),y) ifeq ($(CONFIG_ARCH_LEDS),y)
CSRCS += up_leds.c CSRCS += at90usb_leds.c
endif endif
ifeq ($(CONFIG_USBMSC),y) ifeq ($(CONFIG_USBMSC),y)
CSRCS += up_usbmsc.c CSRCS += at90usb_usbmsc.c
endif endif
ifeq ($(CONFIG_AVR_SPI),y) ifeq ($(CONFIG_AVR_SPI),y)
CSRCS += up_spi.c CSRCS += at90usb_spi.c
endif endif
AOBJS = $(ASRCS:.S=$(OBJEXT)) AOBJS = $(ASRCS:.S=$(OBJEXT))
COBJS = $(CSRCS:.c=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS) SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS) OBJS = $(AOBJS) $(COBJS)
ARCH_SRCDIR = $(TOPDIR)/arch/$(CONFIG_ARCH)/src ARCH_SRCDIR = $(TOPDIR)/arch/$(CONFIG_ARCH)/src
ifeq ($(CONFIG_ARCH_FAMILY_AVR32),y) ifeq ($(CONFIG_ARCH_FAMILY_AVR32),y)
ARCH_SUBDIR = avr32 ARCH_SUBDIR = avr32
endif endif
ifeq ($(CONFIG_ARCH_FAMILY_AVR),y) ifeq ($(CONFIG_ARCH_FAMILY_AVR),y)
ARCH_SUBDIR = avr ARCH_SUBDIR = avr
endif endif
ifeq ($(WINTOOL),y) ifeq ($(WINTOOL),y)
CFLAGS += -I "${shell cygpath -w $(TOPDIR)/sched}" CFLAGS += -I "${shell cygpath -w $(TOPDIR)/sched}"
CFLAGS += -I "${shell cygpath -w $(ARCH_SRCDIR)/chip}" CFLAGS += -I "${shell cygpath -w $(ARCH_SRCDIR)/chip}"
CFLAGS += -I "${shell cygpath -w $(ARCH_SRCDIR)/common}" CFLAGS += -I "${shell cygpath -w $(ARCH_SRCDIR)/common}"
CFLAGS += -I "${shell cygpath -w $(ARCH_SRCDIR)/$(ARCH_SUBDIR)}" CFLAGS += -I "${shell cygpath -w $(ARCH_SRCDIR)/$(ARCH_SUBDIR)}"
else else
CFLAGS += -I "$(TOPDIR)/sched" CFLAGS += -I "$(TOPDIR)/sched"
CFLAGS += -I "$(ARCH_SRCDIR)/chip" CFLAGS += -I "$(ARCH_SRCDIR)/chip"
CFLAGS += -I "$(ARCH_SRCDIR)/common" CFLAGS += -I "$(ARCH_SRCDIR)/common"
CFLAGS += -I "$(ARCH_SRCDIR)/$(ARCH_SUBDIR)" CFLAGS += -I "$(ARCH_SRCDIR)/$(ARCH_SUBDIR)"
endif endif
all: libboard$(LIBEXT) all: libboard$(LIBEXT)

View File

@ -1,5 +1,5 @@
/************************************************************************************ /************************************************************************************
* configs/teensy/src/up_boot.c * configs/teensy/src/at90usb_boot.c
* *
* Copyright (C) 2011, 2015 Gregory Nutt. All rights reserved. * Copyright (C) 2011, 2015 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
@ -50,7 +50,7 @@
#include "teensy_internal.h" #include "teensy_internal.h"
/************************************************************************************ /************************************************************************************
* Definitions * Pre-processor Definitions
************************************************************************************/ ************************************************************************************/
/************************************************************************************ /************************************************************************************

View File

@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* configs/teensy/src/up_leds.c * configs/teensy/src/at90usb_leds.c
* *
* Copyright (C) 2011, 2013, 2015 Gregory Nutt. All rights reserved. * Copyright (C) 2011, 2013, 2015 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>

View File

@ -1,6 +1,5 @@
/************************************************************************************ /************************************************************************************
* configs/teensy/src/up_spi.c * configs/teensy/src/at90usb_spi.c
* arch/arm/src/board/up_spi.c
* *
* Copyright (C) 2011 Gregory Nutt. All rights reserved. * Copyright (C) 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
@ -56,7 +55,7 @@
#ifdef CONFIG_AVR_SPI #ifdef CONFIG_AVR_SPI
/************************************************************************************ /************************************************************************************
* Definitions * Pre-processor Definitions
************************************************************************************/ ************************************************************************************/
/* Teensy SPI Connection /* Teensy SPI Connection
* *

View File

@ -1,6 +1,5 @@
/**************************************************************************** /****************************************************************************
* configs/teensy/src/up_usbmsc.c * configs/teensy/src/at90usb_usbmsc.c
* arch/arm/src/board/up_usbmsc.c
* *
* Copyright (C) 2011 Gregory Nutt. All rights reserved. * Copyright (C) 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
@ -53,7 +52,7 @@
#include "teensy_internal.h" #include "teensy_internal.h"
/**************************************************************************** /****************************************************************************
* Pre-Processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
/* Configuration ************************************************************/ /* Configuration ************************************************************/

View File

@ -43,7 +43,7 @@
#include <nuttx/config.h> #include <nuttx/config.h>
/**************************************************************************** /****************************************************************************
* Pre-Processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
/* Configuration ************************************************************/ /* Configuration ************************************************************/
@ -63,7 +63,8 @@
#ifdef __cplusplus #ifdef __cplusplus
#define EXTERN extern "C" #define EXTERN extern "C"
extern "C" { extern "C"
{
#else #else
#define EXTERN extern #define EXTERN extern
#endif #endif
@ -77,7 +78,7 @@ extern "C" {
************************************************************************************/ ************************************************************************************/
#ifdef CONFIG_AVR_SPI #ifdef CONFIG_AVR_SPI
EXTERN void weak_function at90usb_spiinitialize(void); void weak_function at90usb_spiinitialize(void);
#endif #endif
/************************************************************************************ /************************************************************************************
@ -89,7 +90,7 @@ EXTERN void weak_function at90usb_spiinitialize(void);
************************************************************************************/ ************************************************************************************/
#ifdef CONFIG_ARCH_LEDS #ifdef CONFIG_ARCH_LEDS
EXTERN void at90usb_ledinit(void); void at90usb_ledinit(void);
#endif #endif
#undef EXTERN #undef EXTERN