for checking i2c with integrated bae
Dependencies: SDFileSystem mbed-rtos mbed
hk.cpp
- Committer:
- viswa_chaitanya
- Date:
- 2014-09-15
- Revision:
- 0:cb112a717428
File content as of revision 0:cb112a717428:
#include "hk.h" #include "sdcard.h" //#include "master.h" void func_hk_recieve() { while(1){ wait(0.5); FUNC_I2C_MASTER_MAIN(1,0x20,24); wait(0.5); } } /*void func_hk_write() { SensorData Sensor; time_t seconds = time(NULL); //seconds has unix standard time char beaname[21] = "/sd/beahk/"; char acsname[21] = "/sd/acshk/"; char epsname[21] = "/sd/epshk/"; writedummies(&Sensor); setfilenames(beaname, acsname, epsname, seconds); writevaluesf(beaname, acsname, epsname, seconds, &Sensor); readvaluesff(beaname, acsname, epsname, &Sensor); }*/