edouard@618: /* edouard@618: This file is part of CanFestival, a library implementing CanOpen Stack. edouard@618: edouard@618: Copyright (C): Edouard TISSERANT and Francis DUPIN edouard@618: edouard@618: See COPYING file for copyrights details. edouard@618: edouard@618: This library is free software; you can redistribute it and/or edouard@618: modify it under the terms of the GNU Lesser General Public edouard@618: License as published by the Free Software Foundation; either edouard@618: version 2.1 of the License, or (at your option) any later version. edouard@618: edouard@618: This library is distributed in the hope that it will be useful, edouard@618: but WITHOUT ANY WARRANTY; without even the implied warranty of edouard@618: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU edouard@618: Lesser General Public License for more details. edouard@618: edouard@618: You should have received a copy of the GNU Lesser General Public edouard@618: License along with this library; if not, write to the Free Software edouard@618: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA edouard@618: */ edouard@618: edouard@618: #ifndef __APPLICFG_NONE__ edouard@618: #define __APPLICFG_NONE__ edouard@618: edouard@619: #include edouard@618: #include edouard@618: edouard@618: /* Define the architecture : little_endian or big_endian edouard@618: ----------------------------------------------------- edouard@618: Test : edouard@618: UNS32 v = 0x1234ABCD; edouard@618: char *data = &v; edouard@618: edouard@618: Result for a little_endian architecture : edouard@618: data[0] = 0xCD; edouard@618: data[1] = 0xAB; edouard@618: data[2] = 0x34; edouard@618: data[3] = 0x12; edouard@618: edouard@618: Result for a big_endian architecture : edouard@618: data[0] = 0x12; edouard@618: data[1] = 0x34; edouard@618: data[2] = 0xAB; edouard@618: data[3] = 0xCD; edouard@618: */ edouard@618: edouard@618: /* Integers */ edouard@619: #define INTEGER8 char edouard@618: #define INTEGER16 short edouard@618: #define INTEGER24 int edouard@618: #define INTEGER32 int edouard@618: #define INTEGER40 long long edouard@618: #define INTEGER48 long long edouard@618: #define INTEGER56 long long edouard@618: #define INTEGER64 long long edouard@618: edouard@618: /* Unsigned integers */ edouard@618: #define UNS8 unsigned char edouard@618: #define UNS16 unsigned short edouard@618: #define UNS32 unsigned int edouard@618: #define UNS24 unsigned int edouard@618: #define UNS40 unsigned long long edouard@618: #define UNS48 unsigned long long edouard@618: #define UNS56 unsigned long long edouard@618: #define UNS64 unsigned long long edouard@618: edouard@618: /* Reals */ edouard@618: #define REAL32 float edouard@618: #define REAL64 double edouard@618: edouard@618: /* Definition of error and warning macros */ edouard@618: /* -------------------------------------- */ edouard@618: #define MSG(...) edouard@618: edouard@618: /* Definition of MSG_ERR */ edouard@618: /* --------------------- */ edouard@618: #define MSG_ERR(num, str, val) edouard@618: edouard@618: /* Definition of MSG_WAR */ edouard@618: /* --------------------- */ edouard@618: #define MSG_WAR(num, str, val) edouard@618: edouard@618: typedef void* CAN_HANDLE; edouard@618: edouard@618: typedef void* CAN_PORT; edouard@618: edouard@618: #endif