-
Notifications
You must be signed in to change notification settings - Fork 1
/
Compiler.h
32 lines (25 loc) · 742 Bytes
/
Compiler.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef __COMPILER_H
#define __COMPILER_H
#define COMPILER_MPLAB_C32
#include <p32xxxx.h>
#include <plib.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define PTR_BASE unsigned long
#define ROM_PTR_BASE unsigned long
#define memcmppgm2ram(a, b, c) memcmp(a, b, c)
#define strcmppgm2ram(a, b) strcmp(a, b)
#define memcpypgm2ram(a, b, c) memcpy(a, b, c)
#define strcpypgm2ram(a, b) strcpy(a, b)
#define strncpypgm2ram(a, b, c) strncpy(a, b, c)
#define strstrrampgm(a, b) strstr(a, b)
#define strlenpgm(a) strlen(a)
#define strchrpgm(a, b) strchr(a, b)
#define strcatpgm2ram(a, b) strcat(a, b)
#define ROM const
#define far
#define FAR
#define Reset() SoftReset()
#define ClrWdt() (WDTCONSET = _WDTCON_WDTCLR_MASK)
#endif