X-Git-Url: https://rtime.felk.cvut.cz/gitweb/tiny-bt.git/blobdiff_plain/15845cb687bd8f447736462984d8754b4d38d9fc..e47ae802678720f0859cd76e00a7254b03ef5ace:/src2/testslave.c diff --git a/src2/testslave.c b/src2/testslave.c new file mode 100644 index 0000000..6359049 --- /dev/null +++ b/src2/testslave.c @@ -0,0 +1,40 @@ +/* +* C Implementation: testslave +* +* Description: +* +* +* Author: root , (C) 2008 +* +* Copyright: See COPYING file that comes with this distribution +* +*/ + +#include +#include +#include +#include +#include "tiny_bt_hci_core.h" +#include "tiny_bt_hci_cmd.h" +#include "testapp.h" + + +int main(void){ + int ii=30000; + tiny_bt_init(1); + printf("begin of main\n"); + //if(tiny_bt_read_bd_addr(&p_connection->master.bdaddr, callback_app_read_bd_addr)<0){ +// perror("tiny_bt_read_bd_addr error"); +// return -1; +// } + while(1){ + + ii--; + if(tiny_bt_process()<0){ + perror("process error"); + return -1; + } + + } + return 0; +} \ No newline at end of file