代码如下:
if (P1IFG & (1 << 4))
{
osal_start_timerEx(gu8_simpleBLEPeripheral_TaskID, SBP_URGENCY_UNLOCK_EVT, 3000);
P1IFG &= ~(1 << 4);
}
请问什么时候会出现这种情况呢?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
代码如下:
if (P1IFG & (1 << 4))
{
osal_start_timerEx(gu8_simpleBLEPeripheral_TaskID, SBP_URGENCY_UNLOCK_EVT, 3000);
P1IFG &= ~(1 << 4);
}
请问什么时候会出现这种情况呢?
可以試試先從hal_key.c里頭像SW1一樣先送出HAL_KEY_EVENT到simpleBLEPeripheral_HandleKeys,在simpleBLEPeripheral_HandleKeys再去调用osal_start_timerEx()去啟送你的事件