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.

[参考译文] CCS/CC2642R:Event_ID_16及更高版本的事件不会出现#39;t 挂起

Guru**** 3001220 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/925523/ccs-cc2642r-events-with-event_id_16-and-above-doesn-t-pending

器件型号:CC2642R

工具/软件:Code Composer Studio

您好!

我从 simplelink_cc13x2_26x2_SDK_4_20_00_35中打开了 uartecho 示例、并对其进行了修改。 代码如下所示:

#include 
#include 

/*驱动程序头文件*/
#include 
#include 
#include 
#include 
#include 

/*驱动程序配置*/
#include "ti_drivers_config.h"

Event_Handle Event_H;

#define TIMER_RELEASE Event_ID_03

void Cock_CB ();


//
*=== mainThread ====
//
void * mainThread (void * arg0)
{
EVENT_H = Event_create (NULL、NULL);

Clock_handle 时钟;
Clock_Params clockParams;

Clock_Params_init (&clockParams);
//clockParams.period = 1000000;
clockParams.startFlag = 0;
Clock = Clock_create ((Clock_Functr)&clock_CB、
(100000)、&clockParams、NULL);
clock_start (clock);


uint16_t events=0;
/*循环永久回显*/
while (1)
{
事件= Event_pend (Event_H、Event_ID_NONE、0xFFFFFFFF、BIOS_WAIT_FOREVE);

IF (事件和定时器_RELEASE)
{
clock_start (clock);
}

}


void clock_CB ()
{
EVENT_POST (Event_H、Timer_release);
} 


我的代码有一个应该每秒发布一次事件的时钟。 我面临以下问题。 如果我为事件 Event_ID_16及更高版本使用标识符、则 Event_pend ()函数不起作用。 如果我使用从 Event_ID_00到 Event_ID_15的标识符、则触发函数并重新启动时钟。

事实证明、标识符超过2个字节的所有事件不能被 Event_pend ()函数接收? 问题可能出在哪呢? 我想使用所有可用的事件 ID。

此致、Maxim