X-Git-Url: https://rtime.felk.cvut.cz/gitweb/tiny-bt.git/blobdiff_plain/d160ab14e3ebb70e5423201ba22734d42f7ce005..5052f5ac1ddd2ac70ffcd62dcb0a4c334f849125:/testf/t2/slavetest.c diff --git a/testf/t2/slavetest.c b/testf/t2/slavetest.c new file mode 100644 index 0000000..f1c1ac2 --- /dev/null +++ b/testf/t2/slavetest.c @@ -0,0 +1,80 @@ +/* +* C Implementation: slavetest +* +* Description: +* +* +* Author: root , (C) 2008 +* +* Copyright: See COPYING file that comes with this distribution +* +*/ + +#include +#include +#include +#include +#include +#include +#include +#include +#include "hcidriver.h" + +cmd_state_request array_req[MAX_CMD_STATE_REQUEST]; +int cmd_req_id; +int global_index; + +int req_fcn_add(cmd_state_request *p_req){ //fcn add the request at the end of array or replace the oldest request + int i,sig=0,index=0; + cmd_state_request the_oldest=array_req[0]; + + for(i=0;iid=cmd_req_id++; + //p_new_req->req_opcode = ocf_ogf; + p_new_req->evt_code = EVT_CONN_REQUEST; + p_new_req->p_serv_rutine=&rutine_con_req; + + + + while(1){ + + + } + +return 0; +}