找回密码
 注册
搜索
查看: 3493|回复: 7

[讨论] 关于CSR8670编程中ConnectionInitEx2函数的一些问题。

[复制链接]
发表于 2014-7-11 18:04:22 | 显示全部楼层 |阅读模式
本人新手,刚刚开始接触CSR8670系列的东西。从IDE到编程方式各种不懂。这两天刚刚到了一块开发板,抱着先改个程序玩玩儿的心态,改了一小段代码,然后就受了无比大的打击。。

我在程序中用了ConnectionInitEx2这个函数,根据ADK中给出的API手册查出了头文件也加上了,编译也通过了,就是在链接的时候报了一个错误:
ld: Undefined symbols:
$_ConnectionInitEx2

没有符号链接,,,没有,,,没有,,,没有符号链接,,为啥呢,,,?
求各路大神解答。新手感激不尽!!!!

代码如下:

#include <connection.h>
#include <stdio.h>
#include <print.h>
#include <message_.h>
#include <boot.h>



#include "sink_debug.h"
#include "sink_private.h"

/* Single instance of the device state */
hsTaskData g_stTheSink;


extern void _init(void);

/*************************************************************************
NAME   
    app_handler
   
DESCRIPTION
    This is the main message handler for the Sink Application.  All
    messages pass through this handler to the subsequent handlers.

RETURNS
        VOID
*************************************************************************/
static void app_handler(Task task, MessageId id, Message message)
{
        DEBUG(("app_handler [%s]\n", __TIME__));
       
        return;
}


/*************************************************************************
NAME   
    app_handler
   
DESCRIPTION
    Time critical initialisation

RETURNS
        VOID
*************************************************************************/
void _init(void)
{
    DEBUG(("_init [%s]\n", __TIME__));
       
    g_stTheSink.task.handler = app_handler;
       
    return;
}

/*************************************************************************
NAME   
    main
   
DESCRIPTION
    The Sink Application starts here...

RETURNS
        int
*************************************************************************/
int main(void)
{
        uint16 usBootMode;

    DEBUG(("Main [%s]\n", __TIME__));

        usBootMode = BootGetMode();
        switch (usBootMode)
    {              
#ifdef CVC_PRODTEST
        case BOOTMODE_CVC_PRODTEST:
            /*run the cvc prod test code and dont start the applicaiton */
            cvcProductionTestEnter() ;
        break ;
#endif        
        
        case BOOTMODE_DFU:
            /*do nothing special for the DFU boot mode,
            This mode expects to have the appropriate host interfface enabled
            Don't start the application */
        break ;
        
        case BOOTMODE_DEFAULT:
        case BOOTMODE_CUSTOM:         
        case BOOTMODE_USB_LOW_POWER:  
        case BOOTMODE_ALT_FSTAB:  
        default:
        {
            /*the above are application boot modes so kick of the app init routines*/
            const msg_filter usMsgFilter = msg_group_acl;
            uint16 usPdlNumberOfDevices = 1;
         

            /* the number of paired devices can be restricted using pskey user 40,
               a number between 1 and 8 is allowed               
            PsRetrieve(PSKEY_PAIRED_DEVICE_LIST_SIZE, &usPdlNumberOfDevices , sizeof(uint16));*/
         
            DEBUG (("PDLSize[%d]\n" , usPdlNumberOfDevices));

            /* Initialise the Connection Library with the options */
            ConnectionInitEx2(&g_stTheSink.task, &usMsgFilter, usPdlNumberOfDevices );

        }
        break;
    }

        /* Start the message scheduler loop */
    MessageLoop();
       
    /* You never get here... */
   
    return 0;
}

52RD网友  发表于 2015-1-29 23:39:22
怎么没人,顶一下
本人也刚接触,o基础
发表于 2015-3-5 15:37:34 | 显示全部楼层
CSR的资料都比较封闭,有需要最好找专门开发公司开发。省时,省事,还保证品质[em06]
点评回复

使用道具 举报

发表于 2015-4-16 14:30:02 | 显示全部楼层
专注CSR蓝牙模组开发
深圳市森能科技有限公司
Tel:0755-85208089
点评回复

使用道具 举报

发表于 2015-5-20 15:01:59 | 显示全部楼层
XXXXX
点评回复

使用道具 举报

发表于 2015-6-11 11:22:56 | 显示全部楼层
加一个 connection 库在工程配置里面加
点评回复

使用道具 举报

发表于 2015-9-14 18:01:53 | 显示全部楼层
不错不错,还可以的资料
点评回复

使用道具 举报

发表于 2020-2-27 19:03:22 | 显示全部楼层
路过,学习一下
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-4-19 03:21 , Processed in 0.080098 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表