fossasia / pslab-firmware

Firmware for PSLab Open Hardware Platform https://pslab.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use #pragma in clock definition bits

CloudyPadmal opened this issue · comments

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.

Fixed in #33