/* * File: config.h * Author: Alejo * * Created on 3 de mayo de 2020, 21:18 */ #ifndef CONFIG_H #define CONFIG_H #ifdef __cplusplus extern "C" { #endif #include #include #include #pragma config CONFIG1H = 0x08 #pragma config CONFIG2L = 0x19 #pragma config CONFIG2H = 0x1E #pragma config CONFIG3H = 0x01 #pragma config CONFIG4L = 0x80 #pragma config CONFIG5L = 0x0F #pragma config CONFIG5H = 0xC0 #pragma config CONFIG6L = 0x0F #pragma config CONFIG6H = 0xE0 #pragma config CONFIG7L = 0x0F #pragma config CONFIG7H = 0x40 #define _XTAL_FREQ 8000000 #define TMR0_PREVALUE 200 //CARGA DEL TIMER #define HAY_INTERRUPCION (INTCONbits.TMR0IF ==1) #define LIMPIAR_BANDERA_INTERRUPCION INTCONbits.TMR0IF=0 extern unsigned long centiseg; //Para el control de tiempos void recargar_timer(void); void timer0_config(void); void setup(void); #ifdef __cplusplus } #endif #endif /* CONFIG_H */