From 7772ea4579a45bcf63ebd5e68be66ba1a9c72dfa Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Fri, 11 Nov 2016 15:02:17 -0500 Subject: chibios! --- include/distortos/devices/io/InputPin.hpp | 48 ------------------------------ include/distortos/devices/io/OutputPin.hpp | 46 ---------------------------- 2 files changed, 94 deletions(-) delete mode 100644 include/distortos/devices/io/InputPin.hpp delete mode 100644 include/distortos/devices/io/OutputPin.hpp (limited to 'include/distortos/devices') diff --git a/include/distortos/devices/io/InputPin.hpp b/include/distortos/devices/io/InputPin.hpp deleted file mode 100644 index 9838998..0000000 --- a/include/distortos/devices/io/InputPin.hpp +++ /dev/null @@ -1,48 +0,0 @@ -/** - * \file - * \brief InputPin class header - * - * \author Copyright (C) 2016 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info - * - * \par License - * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not - * distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ - -#ifndef INCLUDE_DISTORTOS_DEVICES_IO_INPUTPIN_HPP_ -#define INCLUDE_DISTORTOS_DEVICES_IO_INPUTPIN_HPP_ - -namespace distortos -{ - -namespace devices -{ - -/** - * InputPin class is an interface for single input pin - * - * \ingroup devices - */ - -class InputPin -{ -public: - - /** - * \brief InputPin's destructor - */ - - virtual ~InputPin() = 0; - - /** - * \return current state of pin - */ - - virtual bool get() const = 0; -}; - -} // namespace devices - -} // namespace devices - -#endif // INCLUDE_DISTORTOS_DEVICES_IO_INPUTPIN_HPP_ diff --git a/include/distortos/devices/io/OutputPin.hpp b/include/distortos/devices/io/OutputPin.hpp deleted file mode 100644 index 6651d9d..0000000 --- a/include/distortos/devices/io/OutputPin.hpp +++ /dev/null @@ -1,46 +0,0 @@ -/** - * \file - * \brief OutputPin class header - * - * \author Copyright (C) 2016 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info - * - * \par License - * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not - * distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ - -#ifndef INCLUDE_DISTORTOS_DEVICES_IO_OUTPUTPIN_HPP_ -#define INCLUDE_DISTORTOS_DEVICES_IO_OUTPUTPIN_HPP_ - -#include "distortos/devices/io/InputPin.hpp" - -namespace distortos -{ - -namespace devices -{ - -/** - * OutputPin class is an interface for single output pin - * - * \ingroup devices - */ - -class OutputPin : public InputPin -{ -public: - - /** - * \brief Sets state of pin. - * - * \param [in] state is the new state of pin - */ - - virtual void set(bool state) = 0; -}; - -} // namespace devices - -} // namespace devices - -#endif // INCLUDE_DISTORTOS_DEVICES_IO_OUTPUTPIN_HPP_ -- cgit v1.2.3