Nuvoton / Modbus

Dependents:   NuMaker-mbed-modbus-sample NuMaker_NuWicam_Lite NuMaker-mbed-modbus-sample

Fork of Modbus by Wayne Lin

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers port.h Source File

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 
00036 typedef uint8_t BOOL;
00037 
00038 typedef unsigned char UCHAR;
00039 typedef char CHAR;
00040 
00041 typedef uint16_t USHORT;
00042 typedef int16_t SHORT;
00043 
00044 typedef uint32_t ULONG;
00045 typedef int32_t LONG;
00046 
00047 #ifndef TRUE
00048 #define TRUE            1
00049 #endif
00050 
00051 #ifndef FALSE
00052 #define FALSE           0
00053 #endif
00054 
00055 #endif