亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? main.c

?? 藍(lán)牙耳機(jī)軟件源代碼
?? C
字號(hào):
/*
    Main.c

    This file contains the main function, which kicks off the headset
    application.
*/

#include "demohs.h"
#include "hal.h"

#include <batt.h>
#include <button.h>
#include <message.h>
#include <pio.h>
#include <print.h>
#include <sched.h>
#include <event.h>
#include <vm.h>




/*
    This is a global variable used to maintain the state of the
    headset device itself.  The structure is defined in demohs.h and
    includes information such as which state the device is in (idle,
    connecting, etc.), whether or not it is paired, if there is a
    button press pending, and if there is a slave connection pending.
    All of these states are explained more in the structure definition
    of Headset in demohs.h.
*/

HeadsetState hsState;


int main(void)
{
    /*
        Initialize the timer subsystem.  Now we can use timers in the
        application.
    */
	PRINT(("This is headset!/n"));	
    TimerInit();

    /* Tell the button library we are interested in these buttons */
    ButtonInit(HS_BUTTONS_USED, ButtonDirect);

    /*
        When the connection manager has indicated it is running, then
        this function is called to complete powerup procedures.  The
        openReq() function only sets the duration of the ring
        indication for incoming calls.
    */
    openReq();

    /*
        Start polling the voltage level on TEST_A and deliver the
        readings to battery.c every 4 * 10sec = 40 seconds.
    */
    BattInit(VM_ADC_TEST_A, BATT_MONITOR_PERIOD);


#ifdef DEV_BOARD_HS
    /* init some flags we will use */
    hsState.turnOffHs = 0;

    /* flash some lights */
    flashInit();

    /* use PIO to turn codec on and off initially its turned off */
    PioSetDir(PIO_CODEC, ~0);
    PioSet(PIO_CODEC, CODEC_OFF);
#endif

    /*
        Kick off the Virtual Machine scheduler.  This is what calls
        each of the tasks in the application.
    */
    Sched();

    return 0;
}


/*
    This function is used to put a message in the message queue to be
    delivered to another task.  In this case, the message is always
    delivered to task #1.  In the scope of the Headset demo, task #1
    is the Headset Framework Handler (hsf_handler.c).
*/

void putMsg(void *msg)
{
    MessagePut(HEADSET_FRAMEWORK_TASK, msg);
}


/*
    This is the declaration of the headset task. This loop is called
    by the scheduler to process any incoming messages/events from
    external tasks.  Many of the events may be the result of an action
    started by this task (the headset task).
*/

DECLARE_TASK(2)
{
    /* Need a void msg pointer for incoming messages */
    void * msg;

    /*  Need to know what type of message was sent. This type may be 
        different depending on the library used.
    */
    MessageType type;  

    /*
        Get the message, if any, from the queue so that we can process
        it.  Notice that only one message is processed at a time.
    */
    msg = MessageGet(HEADSET_TASK, &type);

    if(msg)
    {
        switch (type)
        {
            /*
                The actions taken by openReq(), which was called in
                main() have finished.
            */
            case HS_OPEN_CFM:
                openCfm((HS_OPEN_CFM_T*) msg);
                break;

            /*
                The pairing operation has completed.  Success or failure
                is not known until you look into the inner workings of
                pairCfm().
            */
            case HS_PAIR_CFM:
                pairCfm((HS_PAIR_CFM_T*) msg);
                break;

            /*
                The connect operation has completed.  Success or failure
                is not known until you look into the inner workings of
                connectCfm()
            */
            case HS_CONNECT_CFM:
                connectCfm((HS_CONNECT_CFM_T *) msg);
                break;

            /*
                Indication that the RFCOMM connection has been
                diconnected This can be due to a user action or to a
                failure resulting in the disconnection.
            */
            case HS_CONNECT_STATUS_IND:
                connectStatusInd((HS_CONNECT_STATUS_IND_T*) msg);
                break;

            /*
                There is an incoming call.  This is the indication that
                should cause the headset to "ring" or otherwise indicate
                to the user that there is an incoming call.
            */
            case HS_RING_IND:
                ringInd((HS_RING_IND_T*) msg);
                break;

            /*
                This event indicates news about the SCO connection.
                Generally the news informs the application of a SCO
                disconnection.
            */
            case HS_SCO_STATUS_IND:
                scoStatusInd((HS_SCO_STATUS_IND_T*) msg);
                break;

            /*
                This event relays information about volume/microphone
                gain adjustments.
            */
            case HS_VGS_IND:
                vgsInd((HS_VGS_IND_T*) msg);
                break;

            /*
                This event relays information about an incoming command
                that is unrecognized.
            */
            case HS_CMD_IND:
                cmdInd((HS_CMD_IND_T*) msg);
                break;

            /*
                This event indicates that an error has occurred and
                gives an error code to indicate what went wrong.
            */
            case HS_ERROR_IND:
                errorInd((HS_ERROR_IND_T *) msg);
                break;

            /* 
                This event informs the headset app that the software reset
                (i.e. writes to PS) has completed
            */
            case HS_RESET_CFM:
                resetCfm();
                break;

            case HS_MIC_IND:
                microphoneGainInd((HS_MIC_IND_T*) msg);
                break;

            default :
                PRINT(("headset: Unrecognised msg type 0x%x\n",type));
                break;
        }
        /* Done with the message. Free the memory. */
        MessageDestroy(msg);
    }
}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲综合色婷婷| 国内成人免费视频| 欧美日韩亚洲综合| 亚洲韩国精品一区| 精品国产一区二区三区忘忧草| 国产麻豆91精品| 一区二区三区波多野结衣在线观看| 777a∨成人精品桃花网| 国产综合色视频| 精彩视频一区二区三区| 亚洲三级电影全部在线观看高清| 欧美日韩视频专区在线播放| 欧美视频在线一区| 国产成人午夜精品5599| 亚洲国产精品久久不卡毛片 | 日韩欧美自拍偷拍| 成人做爰69片免费看网站| 亚洲一级二级三级在线免费观看| 一区二区在线免费观看| 国产欧美日韩在线视频| 欧美日韩一区二区三区免费看| 欧美色涩在线第一页| 欧美日韩精品三区| 一本色道亚洲精品aⅴ| 美脚の诱脚舐め脚责91| 亚洲视频狠狠干| 亚洲影院免费观看| 久久精品国产精品亚洲综合| 亚洲午夜电影在线| 日韩av成人高清| 亚洲精品国久久99热| 亚洲愉拍自拍另类高清精品| 日韩精品一区第一页| 一色屋精品亚洲香蕉网站| 精品成人在线观看| 国产精品久久久久久久蜜臀| 精品成人一区二区三区四区| 亚洲欧美综合色| 亚洲国产一区在线观看| 精品综合免费视频观看| 成人av在线影院| 国产精品亚洲一区二区三区在线| 美腿丝袜亚洲综合| 国产不卡视频在线播放| 国内成人精品2018免费看| 丁香六月综合激情| 欧美精品欧美精品系列| 欧美电影在哪看比较好| 国产亚洲欧美色| 精品久久国产老人久久综合| 欧美一级久久久久久久大片| 中文字幕电影一区| 国产精品国产精品国产专区不蜜| 亚洲大片免费看| 五月天欧美精品| 亚洲成人激情av| 国产aⅴ精品一区二区三区色成熟| 91福利视频网站| 欧美亚州韩日在线看免费版国语版| 精品国产伦理网| 亚洲成av人片一区二区三区| 国产成人亚洲综合色影视| 欧美日本乱大交xxxxx| 欧美国产日韩亚洲一区| 免费成人美女在线观看.| 久久99热这里只有精品| 在线区一区二视频| 91精品免费观看| 综合久久一区二区三区| 麻豆免费精品视频| 色一情一乱一乱一91av| 国产日韩三级在线| 另类中文字幕网| 欧美日韩精品欧美日韩精品一| 国产精品的网站| 狠狠色综合播放一区二区| 欧美日韩高清一区| 亚洲免费伊人电影| 日本伊人色综合网| 色婷婷av一区二区三区大白胸| 欧美国产日韩一二三区| 激情另类小说区图片区视频区| 欧美亚洲尤物久久| 亚洲美女少妇撒尿| 99国产精品久久久久久久久久| 91成人国产精品| 国产精品美女久久久久久久久久久| 一区二区三区欧美| 成人毛片在线观看| 久久一区二区视频| 亚洲制服丝袜av| 色狠狠色噜噜噜综合网| 国产精品福利在线播放| 丁香六月久久综合狠狠色| 久久久99精品免费观看不卡| 精品中文字幕一区二区小辣椒| 欧美疯狂做受xxxx富婆| 亚洲国产美女搞黄色| 九色综合狠狠综合久久| 日日骚欧美日韩| 欧美主播一区二区三区| 国产精品久久久久久亚洲伦 | 日本一区二区三区在线观看| 欧美三级日韩在线| 欧美日本在线视频| 日本一区免费视频| 成人午夜精品在线| 亚洲乱码中文字幕综合| 欧美日韩国产高清一区| 日本不卡的三区四区五区| 精品对白一区国产伦| 成人蜜臀av电影| 日韩国产高清在线| www成人在线观看| 99久久久免费精品国产一区二区| 亚洲色图一区二区| 日韩欧美一级二级三级久久久| 99精品久久免费看蜜臀剧情介绍| 中文字幕一区av| 欧美一区二区在线看| 亚洲主播在线观看| 日韩一区二区三区四区| 91丨porny丨户外露出| 国产日韩欧美在线一区| 色偷偷一区二区三区| 另类欧美日韩国产在线| 日韩一区在线播放| 久久午夜色播影院免费高清| 欧美最猛黑人xxxxx猛交| 国产九色sp调教91| 视频在线观看一区二区三区| 国产丝袜欧美中文另类| 在线电影国产精品| 色综合天天综合网天天狠天天| 亚洲精品菠萝久久久久久久| www亚洲一区| 欧美精品高清视频| 色综合欧美在线视频区| 黑人巨大精品欧美黑白配亚洲| 一区二区三区在线视频观看| 精品人在线二区三区| 在线播放国产精品二区一二区四区| www.欧美日韩国产在线| 国产精品成人免费在线| 久久精品视频一区二区三区| 欧美日韩三级一区| 91美女视频网站| 99re热这里只有精品视频| 国产精品99久久久久久宅男| 久久精品国产99| 老司机精品视频在线| 日本在线不卡一区| 日韩中文字幕不卡| 偷偷要91色婷婷| 另类调教123区| 精品系列免费在线观看| 麻豆精品视频在线| 国产一区二区在线影院| 精品午夜久久福利影院| 国产乱码精品一品二品| 国产a久久麻豆| 99精品国产99久久久久久白柏| 成人黄色一级视频| 91社区在线播放| 在线观看区一区二| 欧美日韩国产在线观看| 欧美精品18+| 精品少妇一区二区三区视频免付费| 欧美一级搡bbbb搡bbbb| 欧美大片在线观看一区二区| 日韩欧美中文字幕制服| 欧美不卡一区二区三区四区| 久久精品这里都是精品| 中文字幕欧美三区| 亚洲午夜一区二区三区| 日本不卡不码高清免费观看| 日韩电影网1区2区| 高清不卡一二三区| 91福利小视频| 日韩精品一区二区三区四区视频 | kk眼镜猥琐国模调教系列一区二区 | 色综合久久综合| 欧美亚洲动漫精品| 欧美精品在欧美一区二区少妇| 69久久99精品久久久久婷婷| 国产日韩欧美在线一区| 一区二区三区在线观看欧美| 另类中文字幕网| 一本色道久久加勒比精品 | 91免费观看视频| 日韩欧美的一区| 亚洲激情图片一区| 国产伦精品一区二区三区免费 | 国产日韩精品一区二区浪潮av | 麻豆一区二区在线| 国产精品99久久久久| 国产成人高清在线| 欧美精品第1页| 中文av一区特黄| 日韩你懂的在线播放|