working code of cdms with i2c

Dependencies:   mbed-rtos mbed

Fork of rtos_basic by mbed official

Revision:
7:6b1a6941ac87
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/master.h	Thu Sep 18 10:32:43 2014 +0000
@@ -0,0 +1,10 @@
+#include "mbed.h"                          //library                                              
+#define get_hk_data '1'                      //sample telecommands
+#define telecommand2 '2'
+#define telecommand3 '3'
+#define telecommand4 '4'
+#define telecommand5 '5'
+
+const int addr = 0x20;                     //slave address 
+char receive_byte();                      //funtion to receive float data 
+void FUNC_I2C_MASTER_MAIN(char command, int slave_address, int iterations);
\ No newline at end of file