pt1588-SH7216 1
IEEE1588v2 Implementation for Renesas SH7216 Demo
|
00001 /* 00002 Copyright (c) 2010-2011 The Regents of the University of California. All rights 00003 reserved. 00004 00005 Permission is hereby granted, without written agreement and without license or 00006 royalty fees, to use, copy, modify, and distribute this software and its 00007 documentation for any purpose, provided that the above copyright notice and the 00008 following two paragraphs appear in all copies of this software. 00009 00010 IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR 00011 DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF 00012 THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF 00013 CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00014 00015 THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, 00016 BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 00017 A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, 00018 AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO PROVIDE MAINTENANCE, 00019 SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 00020 */ 00021 00031 #define TRUE (1) 00032 #define FALSE (0) 00033 #define NULL (0) 00035 typedef unsigned char Boolean; 00036 typedef unsigned char Enumeration4; 00037 typedef unsigned char Enumeration8; 00038 typedef unsigned short Enumeration16; 00039 typedef unsigned char UInteger4; 00040 typedef signed char Integer8; 00041 typedef unsigned char UInteger8; 00042 typedef signed short Integer16; 00043 typedef unsigned short UInteger16; 00044 typedef signed int Integer32; 00045 typedef unsigned int UInteger32; 00047 typedef struct { 00048 unsigned short msb; 00049 unsigned int lsb; 00050 } UInteger48; 00051 typedef signed long long Integer64; 00052 typedef unsigned long long UInteger64; 00053 typedef unsigned char Nibble; 00054 typedef char Octet;