Jason Engelman
/
Modbus
port.h@0:7b5d37a81b6b, 2010-10-05 (annotated)
- Committer:
- tecnosys
- Date:
- Tue Oct 05 11:51:06 2010 +0000
- Revision:
- 0:7b5d37a81b6b
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tecnosys | 0:7b5d37a81b6b | 1 | /* |
tecnosys | 0:7b5d37a81b6b | 2 | * FreeModbus Libary: BARE Port |
tecnosys | 0:7b5d37a81b6b | 3 | * Copyright (C) 2006 Christian Walter <wolti@sil.at> |
tecnosys | 0:7b5d37a81b6b | 4 | * |
tecnosys | 0:7b5d37a81b6b | 5 | * This library is free software; you can redistribute it and/or |
tecnosys | 0:7b5d37a81b6b | 6 | * modify it under the terms of the GNU Lesser General Public |
tecnosys | 0:7b5d37a81b6b | 7 | * License as published by the Free Software Foundation; either |
tecnosys | 0:7b5d37a81b6b | 8 | * version 2.1 of the License, or (at your option) any later version. |
tecnosys | 0:7b5d37a81b6b | 9 | * |
tecnosys | 0:7b5d37a81b6b | 10 | * This library is distributed in the hope that it will be useful, |
tecnosys | 0:7b5d37a81b6b | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
tecnosys | 0:7b5d37a81b6b | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
tecnosys | 0:7b5d37a81b6b | 13 | * Lesser General Public License for more details. |
tecnosys | 0:7b5d37a81b6b | 14 | * |
tecnosys | 0:7b5d37a81b6b | 15 | * You should have received a copy of the GNU Lesser General Public |
tecnosys | 0:7b5d37a81b6b | 16 | * License along with this library; if not, write to the Free Software |
tecnosys | 0:7b5d37a81b6b | 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
tecnosys | 0:7b5d37a81b6b | 18 | * |
tecnosys | 0:7b5d37a81b6b | 19 | * File: $Id: port.h,v 1.1 2006/08/22 21:35:13 wolti Exp $ |
tecnosys | 0:7b5d37a81b6b | 20 | */ |
tecnosys | 0:7b5d37a81b6b | 21 | |
tecnosys | 0:7b5d37a81b6b | 22 | #ifndef _PORT_H |
tecnosys | 0:7b5d37a81b6b | 23 | #define _PORT_H |
tecnosys | 0:7b5d37a81b6b | 24 | |
tecnosys | 0:7b5d37a81b6b | 25 | #include <assert.h> |
tecnosys | 0:7b5d37a81b6b | 26 | #include <inttypes.h> |
tecnosys | 0:7b5d37a81b6b | 27 | |
tecnosys | 0:7b5d37a81b6b | 28 | #define INLINE //inline |
tecnosys | 0:7b5d37a81b6b | 29 | #define PR_BEGIN_EXTERN_C //extern "C" { |
tecnosys | 0:7b5d37a81b6b | 30 | #define PR_END_EXTERN_C //} |
tecnosys | 0:7b5d37a81b6b | 31 | |
tecnosys | 0:7b5d37a81b6b | 32 | #define ENTER_CRITICAL_SECTION( ) |
tecnosys | 0:7b5d37a81b6b | 33 | #define EXIT_CRITICAL_SECTION( ) |
tecnosys | 0:7b5d37a81b6b | 34 | |
tecnosys | 0:7b5d37a81b6b | 35 | typedef uint8_t BOOL; |
tecnosys | 0:7b5d37a81b6b | 36 | |
tecnosys | 0:7b5d37a81b6b | 37 | typedef unsigned char UCHAR; |
tecnosys | 0:7b5d37a81b6b | 38 | typedef char CHAR; |
tecnosys | 0:7b5d37a81b6b | 39 | |
tecnosys | 0:7b5d37a81b6b | 40 | typedef uint16_t USHORT; |
tecnosys | 0:7b5d37a81b6b | 41 | typedef int16_t SHORT; |
tecnosys | 0:7b5d37a81b6b | 42 | |
tecnosys | 0:7b5d37a81b6b | 43 | typedef uint32_t ULONG; |
tecnosys | 0:7b5d37a81b6b | 44 | typedef int32_t LONG; |
tecnosys | 0:7b5d37a81b6b | 45 | |
tecnosys | 0:7b5d37a81b6b | 46 | #ifndef TRUE |
tecnosys | 0:7b5d37a81b6b | 47 | #define TRUE 1 |
tecnosys | 0:7b5d37a81b6b | 48 | #endif |
tecnosys | 0:7b5d37a81b6b | 49 | |
tecnosys | 0:7b5d37a81b6b | 50 | #ifndef FALSE |
tecnosys | 0:7b5d37a81b6b | 51 | #define FALSE 0 |
tecnosys | 0:7b5d37a81b6b | 52 | #endif |
tecnosys | 0:7b5d37a81b6b | 53 | |
tecnosys | 0:7b5d37a81b6b | 54 | #endif |