-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.h
34 lines (29 loc) · 811 Bytes
/
main.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
33
/*
* File: main.h
* Author: Bryan
* Created on February 4, 2016, 3:40 PM
* Description: This defines common macros and standard includes
* Also includes header guard and C++ compatible name mangling wrapper ifdef
*/
#ifndef MAIN_H
#define MAIN_H
#include <xc.h>
#pragma config BWRP = WRPROTECT_OFF
#pragma config BSS = NO_FLASH
#pragma config GWRP = OFF
#pragma config GSS = OFF
#pragma config FNOSC = FRC
#pragma config IESO = OFF
#pragma config POSCMD = NONE
#pragma config OSCIOFNC = ON
#pragma config IOL1WAY = OFF
#pragma config FCKSM = CSECMD
#pragma config WDTPOST = PS512
#pragma config WDTPRE = PR128
#pragma config WINDIS = OFF
#pragma config FWDTEN = OFF
#pragma config FPWRT = PWR16
#pragma config ALTI2C = OFF
#pragma config ICS = PGD1
#pragma config JTAGEN = OFF
#endif /* MAIN_H */