找回密码
 立即注册

使用微信账号登录

只需一步,快速开始

查看: 4661|回复: 3

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

[复制链接]

暂无签到数据

发表于 2014-7-11 18:12:28 | 显示全部楼层 |阅读模式

马上注册,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册  

×
本人新手,刚刚开始接触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;
}


楼主热帖
积分商城 - 让您的金币更有价值!||官方Q群 - 让您的沟通更加及时!
连续签到天数:1天
签到总天数:3192天
签到总奖励:113668金币
发表于 2014-7-12 10:06:43 | 显示全部楼层
记得加库文件
积分商城 - 让您的金币更有价值!||官方Q群 - 让您的沟通更加及时!
回复 支持 反对

使用道具 举报

暂无签到数据

 楼主| 发表于 2014-7-12 15:06:08 | 显示全部楼层

恩,,谢谢,请问这个库文件应该怎么加呢?因为刚刚接触ADK这套IDE,找不到库文件在哪里加。
积分商城 - 让您的金币更有价值!||官方Q群 - 让您的沟通更加及时!
回复 支持 反对

使用道具 举报

暂无签到数据

发表于 2014-8-3 18:01:25 | 显示全部楼层
突然觉得楼主说的很有道理,赞一个!
积分商城 - 让您的金币更有价值!||官方Q群 - 让您的沟通更加及时!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册  

本版积分规则

小黑屋|手机版|我爱蓝牙网 - 52Bluetooth

GMT+8, 2024-4-29 08:17 , Processed in 0.158025 second(s), 20 queries , Gzip On, MemCached On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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