Chaitanya Vanapalli
/
rtos_cdms_testing_trash
working code of cdms with i2c
Fork of rtos_basic by
master.h
- Committer:
- viswa_chaitanya
- Date:
- 2014-09-18
- Revision:
- 7:6b1a6941ac87
File content as of revision 7:6b1a6941ac87:
#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);