Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
port.h
00001 /* 00002 * FreeModbus Libary: BARE Port 00003 * Copyright (C) 2006 Christian Walter <wolti@sil.at> 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Lesser General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2.1 of the License, or (at your option) any later version. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Lesser General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Lesser General Public 00016 * License along with this library; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00018 * 00019 * File: $Id: port.h,v 1.1 2006/08/22 21:35:13 wolti Exp $ 00020 */ 00021 00022 #ifndef _PORT_H 00023 #define _PORT_H 00024 00025 #include <assert.h> 00026 #include <inttypes.h> 00027 00028 #define INLINE //inline 00029 #define PR_BEGIN_EXTERN_C //extern "C" { 00030 #define PR_END_EXTERN_C //} 00031 00032 #define ENTER_CRITICAL_SECTION( ) 00033 #define EXIT_CRITICAL_SECTION( ) 00034 00035 typedef uint8_t BOOL; 00036 00037 typedef unsigned char UCHAR; 00038 typedef char CHAR; 00039 00040 typedef uint16_t USHORT; 00041 typedef int16_t SHORT; 00042 00043 typedef uint32_t ULONG; 00044 typedef int32_t LONG; 00045 00046 #ifndef TRUE 00047 #define TRUE 1 00048 #endif 00049 00050 #ifndef FALSE 00051 #define FALSE 0 00052 #endif 00053 00054 #endif
Generated on Tue Jul 12 2022 20:43:26 by
1.7.2