complete motor

Dependencies:   BufferedSerial motor_sn7544

Committer:
Jeonghoon
Date:
Thu Jul 11 13:30:27 2019 +0000
Revision:
11:2228e8931266
190711; ;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Jeonghoon 11:2228e8931266 1 /*
Jeonghoon 11:2228e8931266 2 * Copyright (C) 2010, Willow Garage, Inc.
Jeonghoon 11:2228e8931266 3 *
Jeonghoon 11:2228e8931266 4 * Redistribution and use in source and binary forms, with or without
Jeonghoon 11:2228e8931266 5 * modification, are permitted provided that the following conditions are met:
Jeonghoon 11:2228e8931266 6 * * Redistributions of source code must retain the above copyright notice,
Jeonghoon 11:2228e8931266 7 * this list of conditions and the following disclaimer.
Jeonghoon 11:2228e8931266 8 * * Redistributions in binary form must reproduce the above copyright
Jeonghoon 11:2228e8931266 9 * notice, this list of conditions and the following disclaimer in the
Jeonghoon 11:2228e8931266 10 * documentation and/or other materials provided with the distribution.
Jeonghoon 11:2228e8931266 11 * * Neither the names of Willow Garage, Inc. nor the names of its
Jeonghoon 11:2228e8931266 12 * contributors may be used to endorse or promote products derived from
Jeonghoon 11:2228e8931266 13 * this software without specific prior written permission.
Jeonghoon 11:2228e8931266 14 *
Jeonghoon 11:2228e8931266 15 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Jeonghoon 11:2228e8931266 16 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Jeonghoon 11:2228e8931266 17 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
Jeonghoon 11:2228e8931266 18 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
Jeonghoon 11:2228e8931266 19 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
Jeonghoon 11:2228e8931266 20 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
Jeonghoon 11:2228e8931266 21 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
Jeonghoon 11:2228e8931266 22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
Jeonghoon 11:2228e8931266 23 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
Jeonghoon 11:2228e8931266 24 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
Jeonghoon 11:2228e8931266 25 * POSSIBILITY OF SUCH DAMAGE.
Jeonghoon 11:2228e8931266 26 */
Jeonghoon 11:2228e8931266 27
Jeonghoon 11:2228e8931266 28 #ifndef ROSLIB_MACROS_H_INCLUDED
Jeonghoon 11:2228e8931266 29 #define ROSLIB_MACROS_H_INCLUDED
Jeonghoon 11:2228e8931266 30
Jeonghoon 11:2228e8931266 31 #if defined(__GNUC__)
Jeonghoon 11:2228e8931266 32 #define ROS_DEPRECATED __attribute__((deprecated))
Jeonghoon 11:2228e8931266 33 #define ROS_FORCE_INLINE __attribute__((always_inline))
Jeonghoon 11:2228e8931266 34 #elif defined(_MSC_VER)
Jeonghoon 11:2228e8931266 35 #define ROS_DEPRECATED
Jeonghoon 11:2228e8931266 36 #define ROS_FORCE_INLINE __forceinline
Jeonghoon 11:2228e8931266 37 #else
Jeonghoon 11:2228e8931266 38 #define ROS_DEPRECATED
Jeonghoon 11:2228e8931266 39 #define ROS_FORCE_INLINE inline
Jeonghoon 11:2228e8931266 40 #endif
Jeonghoon 11:2228e8931266 41
Jeonghoon 11:2228e8931266 42 /*
Jeonghoon 11:2228e8931266 43 Windows import/export and gnu http://gcc.gnu.org/wiki/Visibility
Jeonghoon 11:2228e8931266 44 macros.
Jeonghoon 11:2228e8931266 45 */
Jeonghoon 11:2228e8931266 46 #if defined(_MSC_VER)
Jeonghoon 11:2228e8931266 47 #define ROS_HELPER_IMPORT __declspec(dllimport)
Jeonghoon 11:2228e8931266 48 #define ROS_HELPER_EXPORT __declspec(dllexport)
Jeonghoon 11:2228e8931266 49 #define ROS_HELPER_LOCAL
Jeonghoon 11:2228e8931266 50 #elif __GNUC__ >= 4
Jeonghoon 11:2228e8931266 51 #define ROS_HELPER_IMPORT __attribute__ ((visibility("default")))
Jeonghoon 11:2228e8931266 52 #define ROS_HELPER_EXPORT __attribute__ ((visibility("default")))
Jeonghoon 11:2228e8931266 53 #define ROS_HELPER_LOCAL __attribute__ ((visibility("hidden")))
Jeonghoon 11:2228e8931266 54 #else
Jeonghoon 11:2228e8931266 55 #define ROS_HELPER_IMPORT
Jeonghoon 11:2228e8931266 56 #define ROS_HELPER_EXPORT
Jeonghoon 11:2228e8931266 57 #define ROS_HELPER_LOCAL
Jeonghoon 11:2228e8931266 58 #endif
Jeonghoon 11:2228e8931266 59
Jeonghoon 11:2228e8931266 60 // Ignore warnings about import/exports when deriving from std classes.
Jeonghoon 11:2228e8931266 61 #ifdef _MSC_VER
Jeonghoon 11:2228e8931266 62 #pragma warning(disable: 4251)
Jeonghoon 11:2228e8931266 63 #pragma warning(disable: 4275)
Jeonghoon 11:2228e8931266 64 #endif
Jeonghoon 11:2228e8931266 65
Jeonghoon 11:2228e8931266 66 #endif