Other Parts Discussed in Thread: CC2541
您好!
我将使用 IAR for CC2541进行开发。 需要 simplebleperipheral 项目中的延迟函数、我阅读了有关 HalLcd_hw_WaitU ()函数的信息、但我找不到它。
有人能提供帮助吗、请
此致、
Vito
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.
您好、Joakim、
我创建了事件并使用了 osal_Start_timerEx 函数、但它不起作用。 我在 cc2541上使用简单的 BLE 外设项目进行开发。 广播10秒(通用模式)后、我必须切换 GPIO 引脚。 我插入了函数
OSAL_START_timerEx (simpleBLEPeripheral_TaskID、SBP_DONE_EVT、SBP_DONE_EVT_PERIOD)
在 GAPROLE_advertisingcase 中生成一个10秒计时器。 (#define SBP_DONE_EVT_PERIOD 10000)
然后、我创建了与周期性事件类似的事件:
if (事件和 SBP_DONE_EVT)
{
//重新启动计时器
if (SBP_DONE_EVT_PERIOD)
{
OSAL_START_timerEx (simpleBLEPeripheral_TaskID、SBP_DONE_EVT、SBP_DONE_EVT_PERIOD);
P1_7 = 1; // GPIO 引脚在10秒后切换
}
返回(事件^ SBP_DONE_EVT);
}
可以帮帮我吗?
此致、
Vito