/******************************************************************************/ /* Files to Include */ /******************************************************************************/ #if defined(__XC) #include /* XC8 General Include File */ #elif defined(HI_TECH_C) #include /* HiTech General Include File */ #endif #include /* For uint8_t definition */ #include /* For true/false definition */ #include "system.h" /* Refer to the device datasheet for information about available oscillator configurations and to compiler documentation for macro details. */ void ConfigureOscillator(void) { /* configure 4MHz mode */ OSCCONbits.SPLLEN = 0; OSCCONbits.IRCF = 0b1101; OSCCONbits.SCS = 0b00; }