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: SoftSerial MAX14690 Buffer
Fork of rtos_threading_with_callback by
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];
Generated on Tue Sep 13 2022 05:19:36 by
1.7.2
