reset.c

来自「蓝牙耳机软件源代码」· C语言 代码 · 共 47 行

C
47
字号
#include "demohs.h"
#include "hal.h"

#include <message.h>
#include <framework.h>


/*
    resetReq

    The user has pressed some combination of buttons which means that
    they want to reset any knowledge of pairing so we ask the
    framework to handle this for us.
*/
void resetReq(void)
{
    /* Send a reset req to the framework */
    MAKE_MSG(HS_RESET_REQ) ;
    putMsg(msg) ;  
}


/*
    resetCfm

    Hard reset cmpleted
*/
void resetCfm(void)
{
    /* go into pairing mode */
    pairButton();
}


/*
    errorInd

    Indication that an error has occurred. Look at the reson code to
    find out exactly what the error is.
*/
void errorInd(const HS_ERROR_IND_T *ind)
{
    ind = ind; /* stop the compiler complaining */

    /* Add code to handle different error types here */
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?