Flying Sea Glider / Mbed 2 deprecated 2019_13sep_jcw_nosd

Dependencies:   mbed MODSERIAL FATFileSystem

Revision:
45:16b8162188ca
Child:
51:c5c40272ecc3
diff -r 01173b2cb466 -r 16b8162188ca System/StaticDefs.hpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/System/StaticDefs.hpp	Thu Feb 15 02:39:13 2018 +0000
@@ -0,0 +1,63 @@
+#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"
+
+#include "ConfigFileIO.hpp"
+#include "SequenceController.hpp"
+#include "MbedLogger.hpp"
+#include "SDFileSystem.h"
+#include "ServoDriver.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();
+MODSERIAL                   &   datalogger();
+
+LocalFileSystem             &   local();
+
+SpiADC                      &   adc();
+LinearActuator              &   bce();
+LinearActuator              &   batt();
+
+omegaPX209                  &   depth();
+OuterLoop                   &   depthLoop();
+
+IMU                         &   imu();
+OuterLoop                   &   pitchLoop();
+
+StateMachine                &   stateMachine();
+
+MbedLogger                  &   mbedLogger();       //internal memory log files
+
+SDFileSystem                &   sd_card();          //SD card file system
+MbedLogger                  &   sdLogger();         //sd log files
+
+ConfigFileIO                &   configFileIO();
+
+SequenceController          &   sequenceController();
+
+//servo driver
+ServoDriver                 &   servo();
+OuterLoop                   &   rudderLoop();
+
+// leds for debugging, global for use in any function
+DigitalOut                  &   led1();
+DigitalOut                  &   led2();
+DigitalOut                  &   led3();
+DigitalOut                  &   led4();
+
+#endif
\ No newline at end of file