PIC24 Support Libraries
esos_pic24.h
Go to the documentation of this file.
1 /*
2  * "Copyright (c) 2008 Robert B. Reese, Bryan A. Jones, J. W. Bruce ("AUTHORS")"
3  * All rights reserved.
4  * (R. Reese, reese_AT_ece.msstate.edu, Mississippi State University)
5  * (B. A. Jones, bjones_AT_ece.msstate.edu, Mississippi State University)
6  * (J. W. Bruce, jwbruce_AT_ece.msstate.edu, Mississippi State University)
7  *
8  * Permission to use, copy, modify, and distribute this software and its
9  * documentation for any purpose, without fee, and without written agreement is
10  * hereby granted, provided that the above copyright notice, the following
11  * two paragraphs and the authors appear in all copies of this software.
12  *
13  * IN NO EVENT SHALL THE "AUTHORS" BE LIABLE TO ANY PARTY FOR
14  * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
15  * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE "AUTHORS"
16  * HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
17  *
18  * THE "AUTHORS" SPECIFICALLY DISCLAIMS ANY WARRANTIES,
19  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
20  * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
21  * ON AN "AS IS" BASIS, AND THE "AUTHORS" HAS NO OBLIGATION TO
22  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS."
23  *
24  * Please maintain this header in its entirety when copying/modifying
25  * these files.
26  *
27  *
28  */
29 
30 // Documentation for this file. If the \file tag isn't present,
31 // this file won't be documented.
32 /** \file
33  * \brief This is the master include file for implementing ESOS on Microchip PIC24 MCUs
34  */
35 #ifndef ESOS_PIC24_H
36 #define ESOS_PIC24_H
37 
38 //#include "user_config.h"
39 
40 #ifdef __linux
41 /*
42 * Oh! We're running on a real computer (PC/Linux/etc.)
43 * So let's emulate the PIC instead
44 */
45 
46 #define pcrlf() printf("\n")
47 
48 // Emulate the PIC24's registers in RAM variable
49 // The user must provide these variables in the user file
50 // extern uint8_t PIE1; etc. etc. etc.
51 
52 #else
53 /*
54  * OK! We have a real PIC24HJxxx, so start including the real
55  * hardware files for the compiler
56  */
57 #include <pic24_all.h>
58 
59 #endif // __linux
60 
61 // include the IRQ mask definitions
62 #ifdef ESOS_USE_IRQS
63 #include "esos_pic24_irq.h"
64 #endif
65 // include the USB header if the user needs it
66 #ifdef ESOS_USE_BULK_CDC_USB
67 #include "esos_pic24_usb.h"
68 #endif
69 #ifdef ESOS_USE_SERIAL_PORT
70 #include "esos_pic24_rs232.h"
71 #endif
72 
73 #endif // ESOS_PIC24_H
This file contains macros, prototypes, and definitions for Microchip PIC24 Family specific communicat...
This file contains macros, prototypes, and definitions for Microchip PIC24 family specific interrupts...