From f6a4616501253ee8f810322c3d2ba77f9232937f Mon Sep 17 00:00:00 2001 From: Daniel Agar <daniel@agar.ca> Date: Sat, 1 Dec 2018 13:33:09 -0500 Subject: [PATCH] move ocpoc_adc driver to board directory --- boards/aerotenna/ocpoc/CMakeLists.txt | 34 +++++++++++++++++++ .../aerotenna/ocpoc}/ocpoc_adc/CMakeLists.txt | 0 .../aerotenna/ocpoc}/ocpoc_adc/ocpoc_adc.cpp | 0 boards/aerotenna/ocpoc/ubuntu.cmake | 1 - 4 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 boards/aerotenna/ocpoc/CMakeLists.txt rename {src/drivers => boards/aerotenna/ocpoc}/ocpoc_adc/CMakeLists.txt (100%) rename {src/drivers => boards/aerotenna/ocpoc}/ocpoc_adc/ocpoc_adc.cpp (100%) diff --git a/boards/aerotenna/ocpoc/CMakeLists.txt b/boards/aerotenna/ocpoc/CMakeLists.txt new file mode 100644 index 0000000000..eba25ee15b --- /dev/null +++ b/boards/aerotenna/ocpoc/CMakeLists.txt @@ -0,0 +1,34 @@ +############################################################################ +# +# 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(ocpoc_adc) diff --git a/src/drivers/ocpoc_adc/CMakeLists.txt b/boards/aerotenna/ocpoc/ocpoc_adc/CMakeLists.txt similarity index 100% rename from src/drivers/ocpoc_adc/CMakeLists.txt rename to boards/aerotenna/ocpoc/ocpoc_adc/CMakeLists.txt diff --git a/src/drivers/ocpoc_adc/ocpoc_adc.cpp b/boards/aerotenna/ocpoc/ocpoc_adc/ocpoc_adc.cpp similarity index 100% rename from src/drivers/ocpoc_adc/ocpoc_adc.cpp rename to boards/aerotenna/ocpoc/ocpoc_adc/ocpoc_adc.cpp diff --git a/boards/aerotenna/ocpoc/ubuntu.cmake b/boards/aerotenna/ocpoc/ubuntu.cmake index e0ff231b46..e7d4745285 100644 --- a/boards/aerotenna/ocpoc/ubuntu.cmake +++ b/boards/aerotenna/ocpoc/ubuntu.cmake @@ -19,7 +19,6 @@ px4_add_board( linux_sbus #imu # all available imu drivers #magnetometer # all available magnetometer drivers - ocpoc_adc rgbled pwm_out_sim #telemetry # all available telemetry drivers -- GitLab