Latest version of my quadcopter controller with an LPC1768 and MPU9250.
Currently running on a custom PCB with 30.5 x 30.5mm mounts. There are also 2 PC apps that go with the software; one to set up the PID controller and one to balance the motors and props. If anyone is interested, send me a message and I'll upload them.
ClockControl/ClockControl.h
- Committer:
- Anaesthetix
- Date:
- 2018-07-31
- Revision:
- 8:981f7e2365b6
- Parent:
- 0:0929d3d566cf
File content as of revision 8:981f7e2365b6:
/* mbed PowerControl Library * Copyright (c) 2010 Michael Wei */ //shouldn't have to include, but fixes weird problems with defines #include "LPC17xx.h" #ifndef MBED_CLOCKCONTROL_H #define MBED_CLOCKCONTROL_H unsigned int setSystemFrequency(unsigned char clkDivider, unsigned char clkSrc, unsigned short M, unsigned char N); void setPLL0Frequency(unsigned char clkSrc, unsigned short M, unsigned char N); void setPLL1Frequency(unsigned char clkSrc, unsigned short M, unsigned char N); #endif