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 // Documentation for this file. If the \file tag isn't present, 00031 // this file won't be documented. 00035 #ifndef ESOS_PIC24_H 00036 #define ESOS_PIC24_H 00037 00038 //#include "user_config.h" 00039 00040 #ifdef __linux 00041 /* 00042 * Oh! We're running on a real computer (PC/Linux/etc.) 00043 * So let's emulate the PIC instead 00044 */ 00045 00046 #define pcrlf() printf("\n") 00047 00048 // Emulate the PIC24's registers in RAM variable 00049 // The user must provide these variables in the user file 00050 // extern uint8 PIE1; etc. etc. etc. 00051 00052 #else 00053 /* 00054 * OK! We have a real PIC24HJxxx, so start including the real 00055 * hardware files for the compiler 00056 */ 00057 #include <pic24_all.h> 00058 00059 #endif // __linux 00060 00061 // include the IRQ mask definitions 00062 #ifdef ESOS_USE_IRQS 00063 #include "esos_pic24_irq.h" 00064 #endif 00065 // include the USB header if the user needs it 00066 #ifdef ESOS_USE_BULK_CDC_USB 00067 #include "esos_pic24_usb.h" 00068 #endif 00069 #ifdef ESOS_USE_SERIAL_PORT 00070 #include "esos_pic24_rs232.h" 00071 #endif 00072 00073 #endif // ESOS_PIC24_H