您的位置:首页 > 产品设计 > UI/UE

白露卓爱(二): Bluedroid从enable()开死

2014-03-24 23:44 274 查看
不是闲的蛋疼,来做驱动半年了bluedroid的代码还没怎么看过,婶婶的感觉到蛋疼,今天抽空看起来。

从哪看起,必须从按下蓝牙开关开始,今天尝试从setting里面的蓝牙开关看起,失败了,毕竟不是做java的,惭(mei)愧(shi)。

条件反射搜一下有没有bluetooth.c这么弱智的命名方式,一搜果然有,里面竟然还有个enable,哦耶。

先把我找到的调用关系列在下面,一目了然。

enable();//@external/bluetooth/btif/bluetooth.c
|---btif_enable_bluetooth();//@external/bluetooth/btif/btif_core.c
|---bte_main_enable();//@external/bluetooth/bluedroid/main/bte_main.c
|---GKI_create_task(btu_task);//GKI--General Kernel Interface
|---bte_hci_enable();//@external/bluetooth/bluedroid/main/bte_main.c
|   |---hci.init();//@external/bl...th/bl...id/hci/src/bt_hci_bdroid.c
|   |   |---init_vnd_if(bdaddr);//@external/bl...th/bl...id/hci/src/bt_hw.c
|   |---hci.set_power(ON);//@ex...al/bl...th/bl...id/hci/src/bt_hci_bdroid.c
|---GKI_run(0);//@external/bl...th/bl...id/gki/ulinux/gki_ulinux.c
|---bte_snoop_create_task();//HCI log


(如需转载或引用此文章请标明作者和出处,未经同意禁止用于任何商业用途)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: