主题 : tiny 210 android系统上的 蓝牙问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 77694
精华: 0
发帖: 25
金钱: 125 两
威望: 25 点
综合积分: 50 分
注册时间: 2012-09-11
最后登录: 2016-07-28
楼主  发表于: 2013-02-18 17:21

 tiny 210 android系统上的 蓝牙问题

大家好,在调试蓝牙模块,可是发现android系统中,有个宏没有定义
在Framework/base/core/jni/ android_server_BluetoothService.cpp
跟踪发现,HAVE_BLUETOOTH这个宏没有定义 导致:

例如:
static jint enableNative(JNIEnv *env, jobject object) {
#ifdef HAVE_BLUETOOTH
    LOGV(__FUNCTION__);
    return bt_enable();
#endif
    return -1;
}

直接返回 -1

请问这个HAVE_BLUETOOTH宏应该是在那个文件中定义呢?
*.mk文件我有将该为:
BOARD_HAVE_BLUETOOTH := true  

求助!!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2013-02-19 13:40
这个通常定义在device/*下面的BoardConfig.mk里。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 荣誉会员
UID: 34761
精华: 0
发帖: 1348
金钱: 6835 两
威望: 1367 点
综合积分: 2696 分
注册时间: 2010-12-21
最后登录: 2017-06-02
2楼  发表于: 2013-02-22 23:15
最新光盘已经支持蓝牙