]> rtime.felk.cvut.cz Git - tiny-bt.git/blobdiff - src2/tiny_bt_hci_core.c
Version from David Plotek's bachelor thesis CD
[tiny-bt.git] / src2 / tiny_bt_hci_core.c
index 85117392e3e0eacfaa545e0796cb891125bd9a31..6f9ff6e9a6e5b85facd78efbfbd54638dd359d5b 100644 (file)
@@ -23,7 +23,10 @@ static int evt_id;
 static int global_index;
 extern connection_hci connection;
 /******************************HCI callback functions*********************/
-
+/*when propriate event has occured and this event was registered in evt_array
+* these callback_hci..... are callled , they explore event's data field and call 
+* propriate upper protocol(or application) callback and also deliver, parameters
+* which has occured with inbound event */
 static void callback_hci_all_commands(void *p_arg, void *p_recbuf) 
 {
        evt_cmd_status *p_rp;
@@ -33,7 +36,9 @@ static void callback_hci_all_commands(void *p_arg, void *p_recbuf)
                perror("command status error\n");
                tiny_bt_finish();
                //return -1;
-               /*TODO call some app_callback and do something with error state */
+               /*TODO call some app_callback and do something with error state
+               * I only write out the inbound opcode , if any problem has occured
+               * it is not solve here yet. */
                exit(1); // !!!!!!!!!!!!!!!!
        }