BAE RTOS..working hopefully

Dependencies:   mbed-rtos mbed

Committer:
harshit_felicity
Date:
Thu Jul 10 11:37:47 2014 +0000
Revision:
1:37fa1c3eba16
Parent:
0:cbe0ea884289
BAE RTOS..Working hopefully

Who changed what in which revision?

UserRevisionLine numberNew contents of line
harshit_felicity 0:cbe0ea884289 1 #include "mbed.h"
harshit_felicity 0:cbe0ea884289 2 #define TIMES 20
harshit_felicity 0:cbe0ea884289 3 #define CALLSIGN_LEN 112 //in bytes
harshit_felicity 0:cbe0ea884289 4 #define HK_DATA_LEN_SHORT 240 //in bytes
harshit_felicity 0:cbe0ea884289 5 #define UNSTUFFED_CALLSIGN_LEN 7 //in bytes
harshit_felicity 0:cbe0ea884289 6
harshit_felicity 0:cbe0ea884289 7 struct ShortBeacon { //dedicated Short Beacon structure
harshit_felicity 0:cbe0ea884289 8 char Voltage[1];
harshit_felicity 0:cbe0ea884289 9 char AngularSpeed[2];
harshit_felicity 0:cbe0ea884289 10 char SubsystemStatus[1];
harshit_felicity 0:cbe0ea884289 11 char Temp[3];
harshit_felicity 0:cbe0ea884289 12 char ErrorFlag[1];
harshit_felicity 0:cbe0ea884289 13 } ;
harshit_felicity 0:cbe0ea884289 14
harshit_felicity 0:cbe0ea884289 15 void writereg(uint8_t reg,uint8_t val);
harshit_felicity 0:cbe0ea884289 16 uint8_t readreg(uint8_t reg);
harshit_felicity 0:cbe0ea884289 17 void bitstuffinghk(uint8_t byte);
harshit_felicity 0:cbe0ea884289 18 void FUNC_SHORTBEACON();