move all navio2 drivers to emlid navio2 board directory

This commit is contained in:
Daniel Agar 2018-12-01 13:29:08 -05:00
parent 2e7c1d3ca6
commit 766c33799d
19 changed files with 42 additions and 16 deletions

View File

@ -0,0 +1,36 @@
############################################################################
#
# Copyright (c) 2018 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.
#
############################################################################
add_subdirectory(navio_adc)
add_subdirectory(navio_rgbled)
add_subdirectory(navio_sysfs_rc_in)

View File

@ -21,13 +21,8 @@ px4_add_board(
#telemetry # all available telemetry drivers
vmount
linux_gpio
linux_pwm_out
linux_sbus
navio_adc
navio_rgbled
navio_sysfs_rc_in
rpi_rc_in
DF_DRIVERS # NOTE: DriverFramework is migrating to intree PX4 drivers
hmc5883

View File

@ -19,13 +19,8 @@ px4_add_board(
#telemetry # all available telemetry drivers
vmount
linux_gpio
linux_pwm_out
linux_sbus
navio_adc
navio_rgbled
navio_sysfs_rc_in
rpi_rc_in
DF_DRIVERS # NOTE: DriverFramework is migrating to intree PX4 drivers
hmc5883

View File

@ -37,8 +37,8 @@ px4_add_module(
SRCS
navio_rgbled.cpp
DEPENDS
drivers__linux_gpio
led
linux_gpio
)
#add_subdirectory(test)

View File

@ -32,7 +32,7 @@
****************************************************************************/
#pragma once
#include <drivers/linux_gpio/linux_gpio.h>
#include <lib/drivers/linux_gpio/linux_gpio.h>
#include <DevObj.hpp>
#include <lib/led/led.h>

View File

@ -21,7 +21,6 @@ px4_add_board(
#telemetry # all available telemetry drivers
vmount
linux_gpio
linux_pwm_out
linux_sbus
rpi_rc_in

View File

@ -19,7 +19,6 @@ px4_add_board(
#telemetry # all available telemetry drivers
vmount
linux_gpio
linux_pwm_out
linux_sbus
rpi_rc_in

View File

@ -34,4 +34,5 @@
add_subdirectory(airspeed)
add_subdirectory(device)
add_subdirectory(led)
add_subdirectory(linux_gpio)
add_subdirectory(smbus)

View File

@ -31,7 +31,7 @@
#
############################################################################
px4_add_library(drivers__linux_gpio
px4_add_library(linux_gpio
linux_gpio.cpp
)

View File

@ -31,7 +31,8 @@
*
****************************************************************************/
#include <drivers/linux_gpio/linux_gpio.h>
#include "linux_gpio.h"
#include <px4_posix.h>
#include <sys/types.h>
#include <sys/stat.h>