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
System/StaticDefs.hpp
- Committer:
- tnhnrl
- Date:
- 2017-11-06
- Revision:
- 16:3363b9f14913
- Parent:
- 11:3b241ecb75ed
- Child:
- 17:7c16b5671d0e
File content as of revision 16:3363b9f14913:
#ifndef AUTOPILOTSTATICDEFS_H_
#define AUTOPILOTSTATICDEFS_H_
#include "mbed.h"
#include "MODSERIAL.h"
#include "ltc1298.hpp"
#include "LinearActuator.hpp"
#include "IMU.h"
#include "omegaPX209.hpp"
#include "PosVelFilter.hpp"
#include "OuterLoop.hpp"
#include "StateMachine.hpp"
//Declare static global variables using 'construct on use' idiom to ensure they are always constructed correctly
// and avoid "static initialization order fiasco".
Timer & systemTime();
Ticker & pulse();
MODSERIAL & pc();
//MODSERIAL & xb();
LocalFileSystem & local();
SpiADC & adc();
LinearActuator & bce();
LinearActuator & batt();
omegaPX209 & depth();
OuterLoop & depthLoop();
IMU & imu();
OuterLoop & pitchLoop();
StateMachine & stateMachine();
// leds for debugging, global for use in any function
DigitalOut & led1();
DigitalOut & led2();
DigitalOut & led3();
DigitalOut & led4();
#endif