// Configuration Bits
#pragma config FNOSC    = PRIPLL		// Oscillator Selection
#pragma config FPLLIDIV = DIV_2			// PLL Input Divider (PIC32 Starter Kit: use divide by 2 only)
#pragma config FPLLMUL  = MUL_20		// PLL Multiplier
#pragma config FPLLODIV = DIV_1			// PLL Output Divider
#pragma config FPBDIV   = DIV_1			// Peripheral Clock divisor
#pragma config FCKSM    = CSDCMD		// Clock Switching & Fail Safe Clock Monitor
#pragma config OSCIOFNC = OFF			// CLKO Enable
#pragma config POSCMOD  = XT			// Primary Oscillator
#pragma config IESO     = OFF			// Internal/External Switch-over
#pragma config FSOSCEN  = OFF			// Secondary Oscillator Enable
#pragma config ICESEL   = ICS_PGx2		// ICE/ICD Comm Channel Select
#pragma config FMIIEN   = OFF			// External PHY in RMII (ETH_PHY_CFG_RMII)
#pragma config FETHIO   = ON			// Default pin configuration
#pragma config FSRSSEL	= PRIORITY_6	// Assign shadow register set to interrupt Priority 6
#pragma config PWP      = OFF			// Program Flash Write Protect

//#pragma config FCANIO = ON/OFF		// CAN I/O Pin select
//#pragma config FUSBIDIO = ON/OFF		// USB USID function
//#pragma config FVBUSONIO = ON/OFF		// USB VBUS ON
//#pragma config UPLLIDIV = DIV_1 - DIV_12 // USB PLL Input Divider
//#pragma config UPLLEN = ON/OFF		// USB PLL Enable

//#define __DEBUG 1
/* Unable to debug because of linker script is not prepared 
#if defined(__DEBUG)
	#pragma config FWDTEN   = OFF			// Watchdog Timer 
	#pragma config WDTPS    = PS4096		// Watchdog Timer Postscale (4096 ms)
	#pragma config CP       = OFF			// Code Protect
	#pragma config BWP      = OFF			// Boot Flash Write Protect

	#pragma config DEBUG    = ON           // Debugger Enabled
#else
*/
	#pragma config FWDTEN   = ON			// Watchdog Timer 
	#pragma config WDTPS    = PS4096		// Watchdog Timer Postscale (4096 ms)
	#pragma config CP       = ON			// Code Protect
	#pragma config BWP      = OFF			// Boot Flash Write Protect

	#pragma config DEBUG    = OFF           // Debugger Disabled

//#endif	// #if defined(__DEBUG)
