see http://mbed.org/users/no2chem/notebook/mbed-clock-control--benchmarks/

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ClockControl.h Source File

ClockControl.h

00001 /* mbed PowerControl Library
00002   * Copyright (c) 2010 Michael Wei
00003   */ 
00004   
00005 //shouldn't have to include, but fixes weird problems with defines
00006 #include "LPC1768/LPC17xx.h"
00007 
00008 #ifndef MBED_CLOCKCONTROL_H 
00009 #define MBED_CLOCKCONTROL_H 
00010 
00011 unsigned int setSystemFrequency(unsigned char clkDivider, unsigned char clkSrc, unsigned short M, unsigned char N);
00012 void setPLL0Frequency(unsigned char clkSrc, unsigned short M, unsigned char N);
00013 void setPLL1Frequency(unsigned char clkSrc, unsigned short M, unsigned char N);
00014 #endif