#ifndef CONFIG_H #define CONFIG_H // CONFIG #pragma config FOSC = INTOSCIO // Oscillator Selection bits (INTRC oscillator: I/O function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN) #pragma config WDTE = OFF // Watchdog Timer Enable bit (WDT disabled) #pragma config PWRTE = OFF // Power-up Timer Enable bit (PWRT disabled) #pragma config MCLRE = ON // RA5/MCLR pin function select (RA5/MCLR pin function is MCLR) #pragma config BOREN = ON // Brown-out Reset Enable bit (BOD Reset enabled) #pragma config LVP = OFF // Low-Voltage Programming Enable bit (RB4/PGM pin has digital I/O function, HV on MCLR must be used for programming) #pragma config CPD = OFF // Data Code Protection bit (Data memory code protection off) #pragma config CP = OFF // Code Protection bits (Program memory code protection off) #define _XTAL_FREQ 4000000LL #include #include typedef unsigned char byte; typedef unsigned short word; typedef unsigned char uint8_t; #define _GET(B,b) (((B)>>(b)) & 1) #endif /* CONFIG_H */