Subversion Repositories Code-Repo

Rev

Rev 226 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 226 Rev 231
Line 1... Line 1...
1
// PIC32MX795F512L
1
// PIC32MX795F512L
2
 
2
 
-
 
3
#ifndef DEFINES_H
-
 
4
#define	DEFINES_H
-
 
5
 
-
 
6
#include <xc.h>
-
 
7
#include <plib.h>
-
 
8
#include <stdint.h>
-
 
9
 
3
// Uncomment ONE of the following:
10
// Uncomment ONE of the following:
4
//#define CEREBOT_32MX7
11
//#define CEREBOT_32MX7
5
 #define CEREBOT_MX7CK
12
 #define CEREBOT_MX7CK
6
 
13
 
7
// Power supply must be 5V for proper operation of the board!
14
// Power supply must be 5V for proper operation of the board!
Line 22... Line 29...
22
#define LED3_TRIS TRISGbits.TRISG14
29
#define LED3_TRIS TRISGbits.TRISG14
23
#define LED3_PORT PORTGbits.RG14
30
#define LED3_PORT PORTGbits.RG14
24
#define LED4_TRIS TRISGbits.TRISG15
31
#define LED4_TRIS TRISGbits.TRISG15
25
#define LED4_PORT PORTGbits.RG15
32
#define LED4_PORT PORTGbits.RG15
26
 
33
 
27
void Delay_MS(unsigned int delay_ms);
34
void Delay_MS(uint32_t delay_ms);
28
void Delay_US(unsigned int delay_us);
35
void Delay_US(uint32_t delay_us);
29
 
36
 
30
// <editor-fold desc="PMOD to MCU Pinouts">
37
// <editor-fold desc="PMOD to MCU Pinouts">
31
/*
38
/*
32
JA-01   AN2/C2IN-/CN4/RB2                               RB02
39
JA-01   AN2/C2IN-/CN4/RB2                               RB02
33
JA-02   AN3/C2IN+/CN5/RB3                               RB03
40
JA-02   AN3/C2IN+/CN5/RB3                               RB03
Line 207... Line 214...
207
 * Remove the jumper to disconnect the USB serial converter's connection to the
214
 * Remove the jumper to disconnect the USB serial converter's connection to the
208
    MCLR pin. Disconnecting this when using the built in debugger is recommended.
215
    MCLR pin. Disconnecting this when using the built in debugger is recommended.
209
JP17 - Do Not Use
216
JP17 - Do Not Use
210
 */
217
 */
211
// </editor-fold>
218
// </editor-fold>
-
 
219
 
-
 
220
#endif /* DEFINES_H */
212
221