Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed MODSERIAL FATFileSystem
Diff: System/StaticDefs.hpp
- Revision:
- 9:d5fcdcb3c89d
- Child:
- 10:085ab7328054
diff -r 70412939a506 -r d5fcdcb3c89d System/StaticDefs.hpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/System/StaticDefs.hpp Fri Oct 20 11:41:22 2017 +0000 @@ -0,0 +1,27 @@ +#ifndef AUTOPILOTSTATICDEFS_H_ +#define AUTOPILOTSTATICDEFS_H_ + +#include "mbed.h" +#include "MODSERIAL.h" +#include "ltc1298.hpp" +#include "LinearActuator.hpp" +#include "IMU.h" + + +//Declare static global variables using 'construct on use' idiom to ensure they are always constructed correctly +// and avoid "static initialization order fiasco". + +Timer & systemTime(); +Serial & pc(); + +SpiADC & adc(); +LinearActuator & bce(); +LinearActuator & batt(); + +LocalFileSystem & local(); + +PIDController & DepthController(); + +IMU & Microstrain(); + +#endif \ No newline at end of file