You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
964 B
32 lines
964 B
/*
|
|
* File: config.h
|
|
* Author: Sparky
|
|
*
|
|
* Created on ??????, 2013, ?????? 26, 11:33
|
|
*/
|
|
|
|
#ifndef CONFIG_H
|
|
#define CONFIG_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <xc.h>
|
|
|
|
// CONFIG
|
|
#pragma config FOSC = INTOSCIO // Oscillator Selection bits (INTOSCIO oscillator: I/O function on GP4/OSC2/CLKOUT pin, I/O function on GP5/OSC1/CLKIN)
|
|
#pragma config WDTE = OFF // Watchdog Timer Enable bit (WDT disabled and can be enabled by SWDTEN bit of the WDTCON register)
|
|
#pragma config PWRTE = ON // Power-up Timer Enable bit (PWRT enabled)
|
|
#pragma config MCLRE = ON // MCLR Pin Function Select bit (MCLR pin function is MCLR)
|
|
#pragma config CP = OFF // Code Protection bit (Program memory code protection is disabled)
|
|
#pragma config IOSCFS = 8MHZ // Internal Oscillator Frequency Select (8 MHz)
|
|
#pragma config BOREN = OFF // Brown-out Reset Selection bits (BOR disabled)
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* CONFIG_H */
|
|
|