Use #pragma in clock definition bits
CloudyPadmal opened this issue · comments
Padmal commented
Currently the oscillator selection bits settings are depreciated and they need to be set using #prama tags.
/* PLL using external oscillator. */
_FOSCSEL(FNOSC_FRC & IESO_OFF); //Start up using internal oscillator
_FOSC(FCKSM_CSECMD & OSCIOFNC_OFF & POSCMD_XT); // enable failsafe osc, use external crystal
//_FOSC(FCKSM_CSECMD & OSCIOFNC_ON & POSCMD_EC ); // For Non-passive , driving clocks.