?? reset.c
字號:
#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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -