Browse Source

Rename the 'device' directory back to 'drivers', it's less confusing that way.

Move the fmuv2 board driver out into the new world.
sbg
px4dev 12 years ago
parent
commit
2557f0d2de
  1. 41
      apps/drivers/boards/px4fmuv2/Makefile
  2. 2
      makefiles/config_px4fmu_default.mk
  3. 7
      makefiles/config_px4fmuv2_default.mk
  4. 9
      src/drivers/boards/px4fmuv2/module.mk
  5. 0
      src/drivers/boards/px4fmuv2/px4fmu_can.c
  6. 0
      src/drivers/boards/px4fmuv2/px4fmu_init.c
  7. 0
      src/drivers/boards/px4fmuv2/px4fmu_internal.h
  8. 0
      src/drivers/boards/px4fmuv2/px4fmu_pwm_servo.c
  9. 0
      src/drivers/boards/px4fmuv2/px4fmu_spi.c
  10. 0
      src/drivers/boards/px4fmuv2/px4fmu_usb.c
  11. 0
      src/drivers/lsm303d/lsm303d.cpp
  12. 0
      src/drivers/lsm303d/module.mk
  13. 0
      src/drivers/px4fmu/fmu.cpp
  14. 0
      src/drivers/px4fmu/module.mk
  15. 0
      src/drivers/rgbled/module.mk
  16. 0
      src/drivers/rgbled/rgbled.cpp

41
apps/drivers/boards/px4fmuv2/Makefile

@ -1,41 +0,0 @@ @@ -1,41 +0,0 @@
############################################################################
#
# Copyright (C) 2012 PX4 Development Team. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# 3. Neither the name PX4 nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
#
# Board-specific startup code for the PX4FMUv2
#
INCLUDES = $(TOPDIR)/arch/arm/src/stm32 $(TOPDIR)/arch/arm/src/common
LIBNAME = brd_px4fmuv2
include $(APPDIR)/mk/app.mk

2
makefiles/config_px4fmu_default.mk

@ -10,7 +10,7 @@ ROMFS_ROOT = $(PX4_BASE)/ROMFS/px4fmu_common @@ -10,7 +10,7 @@ ROMFS_ROOT = $(PX4_BASE)/ROMFS/px4fmu_common
#
# Board support modules
#
MODULES += device/px4fmu
MODULES += drivers/px4fmu
#
# Transitional support - add commands from the NuttX export archive.

7
makefiles/config_px4fmuv2_default.mk

@ -10,9 +10,10 @@ ROMFS_ROOT = $(PX4_BASE)/ROMFS/px4fmu_common @@ -10,9 +10,10 @@ ROMFS_ROOT = $(PX4_BASE)/ROMFS/px4fmu_common
#
# Board support modules
#
MODULES += device/lsm303d
MODULES += device/px4fmu
MODULES += device/rgbled
MODULES += drivers/boards/px4fmuv2
MODULES += drivers/lsm303d
MODULES += drivers/px4fmu
MODULES += drivers/rgbled
#
# Transitional support - add commands from the NuttX export archive.

9
src/drivers/boards/px4fmuv2/module.mk

@ -0,0 +1,9 @@ @@ -0,0 +1,9 @@
#
# Board-specific startup code for the PX4FMUv2
#
SRCS = px4fmu_can.c \
px4fmu_init.c \
px4fmu_pwm_servo.c \
px4fmu_spi.c \
px4fmu_usb.c

0
apps/drivers/boards/px4fmuv2/px4fmu_can.c → src/drivers/boards/px4fmuv2/px4fmu_can.c

0
apps/drivers/boards/px4fmuv2/px4fmu_init.c → src/drivers/boards/px4fmuv2/px4fmu_init.c

0
apps/drivers/boards/px4fmuv2/px4fmu_internal.h → src/drivers/boards/px4fmuv2/px4fmu_internal.h

0
apps/drivers/boards/px4fmuv2/px4fmu_pwm_servo.c → src/drivers/boards/px4fmuv2/px4fmu_pwm_servo.c

0
apps/drivers/boards/px4fmuv2/px4fmu_spi.c → src/drivers/boards/px4fmuv2/px4fmu_spi.c

0
apps/drivers/boards/px4fmuv2/px4fmu_usb.c → src/drivers/boards/px4fmuv2/px4fmu_usb.c

0
src/device/lsm303d/lsm303d.cpp → src/drivers/lsm303d/lsm303d.cpp

0
src/device/lsm303d/module.mk → src/drivers/lsm303d/module.mk

0
src/device/px4fmu/fmu.cpp → src/drivers/px4fmu/fmu.cpp

0
src/device/px4fmu/module.mk → src/drivers/px4fmu/module.mk

0
src/device/rgbled/module.mk → src/drivers/rgbled/module.mk

0
src/device/rgbled/rgbled.cpp → src/drivers/rgbled/rgbled.cpp

Loading…
Cancel
Save