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;
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); // !!!!!!!!!!!!!!!!
}