pic24_generic.h

Go to the documentation of this file.
00001 /*
00002  * "Copyright (c) 2008 Robert B. Reese, Bryan A. Jones, J. W. Bruce ("AUTHORS")"
00003  * All rights reserved.
00004  * (R. Reese, reese_AT_ece.msstate.edu, Mississippi State University)
00005  * (B. A. Jones, bjones_AT_ece.msstate.edu, Mississippi State University)
00006  * (J. W. Bruce, jwbruce_AT_ece.msstate.edu, Mississippi State University)
00007  *
00008  * Permission to use, copy, modify, and distribute this software and its
00009  * documentation for any purpose, without fee, and without written agreement is
00010  * hereby granted, provided that the above copyright notice, the following
00011  * two paragraphs and the authors appear in all copies of this software.
00012  *
00013  * IN NO EVENT SHALL THE "AUTHORS" BE LIABLE TO ANY PARTY FOR
00014  * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
00015  * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE "AUTHORS"
00016  * HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00017  *
00018  * THE "AUTHORS" SPECIFICALLY DISCLAIMS ANY WARRANTIES,
00019  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
00020  * AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
00021  * ON AN "AS IS" BASIS, AND THE "AUTHORS" HAS NO OBLIGATION TO
00022  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS."
00023  *
00024  * Please maintain this header in its entirety when copying/modifying
00025  * these files.
00026  *
00027  *
00028  */
00029 
00030 
00031 // Documentation for this file. If the \file tag isn't present,
00032 // this file won't be documented.
00038 #ifndef _PIC24_GENERIC_H_
00039 #define _PIC24_GENERIC_H_
00040 
00043 typedef unsigned char       uint8;   //8 bits
00047 typedef unsigned int      uint16;  //16 bits
00051 typedef unsigned long       uint32;  //32 bits
00055 typedef unsigned long long  uint64;  //64 bits
00056 
00060 typedef signed char         int8;    //8 bits
00064 typedef signed int        int16;   //16 bits
00068 typedef signed long         int32;   //32 bits
00072 typedef signed long long    int64;   //64 bits
00073 
00075 typedef union _union16 {
00076   uint16 u16;
00077   uint8 u8[2];
00078 } union16;
00079 
00081 typedef union _union32 {
00082   uint32 u32;
00083 
00084   struct {
00085     uint16 ls16;
00086     uint16 ms16;
00087   } u16;
00088 
00089   uint8 u8[4];
00090 } union32;
00091 
00093 typedef union _union64 {
00094   uint32 u32[2];
00095   uint16 u16[4];
00096   uint8 u8[8];
00097 } union64;
00098 
00099 
00100 #endif

Generated on Mon Oct 18 07:40:47 2010 for Python-on-a-chip by  doxygen 1.5.9