Chaitanya Vanapalli
/
rtos_cdms_testing_trash
working code of cdms with i2c
Fork of rtos_basic by
Diff: master.h
- 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