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