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@0:0929d3d566cf, 2018-07-09 (annotated)
- Committer:
- Anaesthetix
- Date:
- Mon Jul 09 16:31:40 2018 +0000
- Revision:
- 0:0929d3d566cf
Latest version of my multicopter controller
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Anaesthetix | 0:0929d3d566cf | 1 | /* mbed PowerControl Library |
Anaesthetix | 0:0929d3d566cf | 2 | * Copyright (c) 2010 Michael Wei |
Anaesthetix | 0:0929d3d566cf | 3 | */ |
Anaesthetix | 0:0929d3d566cf | 4 | |
Anaesthetix | 0:0929d3d566cf | 5 | //shouldn't have to include, but fixes weird problems with defines |
Anaesthetix | 0:0929d3d566cf | 6 | #include "LPC17xx.h" |
Anaesthetix | 0:0929d3d566cf | 7 | |
Anaesthetix | 0:0929d3d566cf | 8 | #ifndef MBED_CLOCKCONTROL_H |
Anaesthetix | 0:0929d3d566cf | 9 | #define MBED_CLOCKCONTROL_H |
Anaesthetix | 0:0929d3d566cf | 10 | |
Anaesthetix | 0:0929d3d566cf | 11 | unsigned int setSystemFrequency(unsigned char clkDivider, unsigned char clkSrc, unsigned short M, unsigned char N); |
Anaesthetix | 0:0929d3d566cf | 12 | void setPLL0Frequency(unsigned char clkSrc, unsigned short M, unsigned char N); |
Anaesthetix | 0:0929d3d566cf | 13 | void setPLL1Frequency(unsigned char clkSrc, unsigned short M, unsigned char N); |
Anaesthetix | 0:0929d3d566cf | 14 | #endif |
Anaesthetix | 0:0929d3d566cf | 15 |