
#include "common.h"
#include "Settings.h"

enum usb_clock
{
  MCGPLL0,
  MCGFLL,
  CLKIN
};


/* Select Clock source */
#define USB_CLOCK   MCGPLL0
//#define USB_CLOCK   MCGFLL
//#define USB_CLOCK   CLKIN

/* USB Fractional Divider value for 72MHz input */
/** USB Clock = PLL x (FRAC +1) / (DIV+1)       */
/** USB Clock = 72MHz x (1+1) / (2+1) = 48 MHz    */
  #define USB_FRAC    1
  #define USB_DIV     2



void vfnInitUSBClock (uint8 u8ClkOption);

