Leon Wehmeier / Mbed OS fiasco_max32630

Dependencies:   SoftSerial MAX14690 Buffer

Fork of rtos_threading_with_callback by mbed_example

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers global.h Source File

global.h

00001 #pragma once
00002 #include "txQueue.h"
00003 #include "mbed.h"
00004 #include "txQueue.h"
00005 #include "linkLayer.h"
00006 
00007 extern TxQueue txQueue;
00008 
00009 enum {FRAMETYPE_DEFAULT=0,
00010     FRAMETYPE_GPS,
00011     FRAMETYPE_TEMPERATURE,
00012     FRAMETYPE_ALTITUDE,
00013     FRAMETYPE_PRESSURE,
00014     FRAMETYPE_HUMIDITY,
00015     FRAMETYPE_DEWPOINT,
00016     FRAMETYPE_IMU1, //float array ACC(X,Y,Z), GYRO(XYZ)
00017     FRAMETYPE_IMU2,
00018     FRAMETYPE_MAXVALUE
00019     };
00020 
00021 typedef void (*threadFunc_t)(void);
00022 bool registerThread(threadFunc_t);
00023 
00024 //device drivers initialized by main
00025 extern I2C i2c2;
00026 extern I2C i2c;
00027 
00028 //ToDo: remove. ugly code
00029 
00030 extern float temperature, pressure, altitude, humidity;
00031 extern float acc1[3];
00032 extern float acc2[3];
00033 extern float gyro1[3], gyro2[3];