/******************************************************************************

   sys_clock.h - Prototypes for Routines to set the system clock 
                 for the Lincoln 60
                      
                      by Micromint Support <support@micromint.com>    June-2011

*******************************************************************************/
#ifndef __sys_clock_H__
#define __sys_clock_H__

#include "system_LPC17xx.h"
#include "lpc17xx.h"

#define CLKCFG_10MHZ    29
#define PLL0CFG_10MHZ   0x10018
#define CLKCFG_20MHZ    14
#define PLL0CFG_20MHZ   0x10018
#define CLKCFG_30MHZ    9
#define PLL0CFG_30MHZ   0x10018
#define CLKCFG_40MHZ    8
#define PLL0CFG_40MHZ   0x0000E
#define CLKCFG_50MHZ    5
#define PLL0CFG_50MHZ   0x10018
#define CLKCFG_60MHZ    4
#define PLL0CFG_60MHZ   0x10018
#define CLKCFG_70MHZ    4
#define PLL0CFG_70MHZ   0xB00AE
#define CLKCFG_80MHZ    3
#define PLL0CFG_80MHZ   0x20027
#define CLKCFG_90MHZ    3
#define PLL0CFG_90MHZ   0x0000E
#define CLKCFG_100MHZ    3
#define PLL0CFG_100MHZ   0x50063
#define CLKCFG_110MHZ    2
#define PLL0CFG_110MHZ   0x30036
#define CLKCFG_120MHZ    2
#define PLL0CFG_120MHZ   0x0000E
/*******************************************************************************

 Prototypes

*******************************************************************************/
unsigned char set_sysclock(unsigned long ulFreq);
#endif /* __sys_clock_H__ */
