etisserant@400: /* etisserant@400: Copyright (C): Giuseppe Massimo BERTANI etisserant@400: gmbertani@users.sourceforge.net etisserant@400: etisserant@400: etisserant@400: See COPYING file for copyrights details. etisserant@400: etisserant@400: This library is free software; you can redistribute it and/or etisserant@400: modify it under the terms of the GNU Lesser General Public etisserant@400: License as published by the Free Software Foundation; either etisserant@400: version 2.1 of the License, or (at your option) any later version. etisserant@400: etisserant@400: This library is distributed in the hope that it will be useful, etisserant@400: but WITHOUT ANY WARRANTY; without even the implied warranty of etisserant@400: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU etisserant@400: Lesser General Public License for more details. etisserant@400: etisserant@400: You should have received a copy of the GNU Lesser General Public etisserant@400: License along with this library; if not, write to the Free Software etisserant@400: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA etisserant@400: */ etisserant@400: etisserant@400: /** etisserant@400: * @file main.h etisserant@400: * @author GMB etisserant@400: * @date 17/1/08 etisserant@400: * etisserant@400: * This file is part of SillySlave demo for CANfestival etisserant@400: * open source CANopen stack. etisserant@400: */ etisserant@400: etisserant@400: etisserant@400: etisserant@400: #ifndef _MAIN_H etisserant@400: #define _MAIN_H etisserant@400: etisserant@400: #if defined(WIN32) && !defined(__CYGWIN__) etisserant@400: #include etisserant@400: #include "getopt.h" etisserant@400: void pause(void) etisserant@400: { etisserant@400: system("PAUSE"); etisserant@400: } etisserant@400: #else etisserant@400: #include etisserant@400: #include etisserant@400: #include etisserant@400: #include etisserant@400: #include etisserant@400: #endif etisserant@400: etisserant@400: #include "canfestival.h" etisserant@400: etisserant@400: /* etisserant@400: * Please tune the following defines to suit your needs: etisserant@400: */ etisserant@400: #define NODE_MASTER 0x1 etisserant@400: #define NODE_SLAVE 0x12 etisserant@400: #define DRIVER_LIBRARY "libcanfestival_can_kvaser.so" etisserant@400: #define BAUDRATE 250000 etisserant@400: #define BUS 0 etisserant@400: etisserant@400: #endif /* _MAIN_H */ etisserant@400: etisserant@400: