Updated functions to deal with USB clocking. (PPL1) See http://www.nxp.com/documents/user_manual/UM10360.pdf Section 4.6 & 4.7.3

Dependencies:   mbed

Fork of ClockControl by Michael Wei

ClockControl/ClockControl.h

Committer:
aidan1971
Date:
2016-09-12
Revision:
2:ab85c20317b5
Parent:
1:8b04bd33c7cd

File content as of revision 2:ab85c20317b5:

/* mbed PowerControl Library
  * Copyright (c) 2010 Michael Wei
  */ 
  
//shouldn't have to include, but fixes weird problems with defines
#include "LPC1768.h"

#ifndef MBED_CLOCKCONTROL_H 
#define MBED_CLOCKCONTROL_H 

unsigned int setSystemFrequency(unsigned char USBclkDivider,unsigned char clkDivider, unsigned char clkSrc, unsigned short M, unsigned char N);
void setPPL1forUSB(unsigned short M, unsigned char P);
void setPLL0Frequency(unsigned char clkSrc, unsigned short M, unsigned char N);
void setPLL1Frequency(unsigned char clkSrc, unsigned short M, unsigned char N);
#endif