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/LAUNCHXL-CC1352R1:即使没有 Event_post 也会触发事件()

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/892570/ccs-launchxl-cc1352r1-events-that-get-triggered-even-there-is-no-event_post

器件型号:LAUNCHXL-CC1352R1

工具/软件:Code Composer Studio

尊敬的 TI 团队:

我遇到了一个问题,其中一些事件即使不是通过 Event_post ()调用也会被触发

uint32_t 事件= Event_pend (radioOperationEventHandle、0、
RADIO_EVENT_ALL、
BIOS_wait_forever);

/*如果接收到有效的数据包*/
IF (事件和 RADIO_START_Receive)
{

ease_stat = EasyLink_receiveAsync (rxDoneCallback、0);
if (Easy_stat!= EasyLink_Status_Success)
{
char toprint[30];
sprintf (toprint、"无法开始接收\r\n");

//setMessageToPrint (toprint);

//System_abort ("EasyLink_receiveAsync failed");
}
其他
{
char toprint[30];
sprintf (toprint、"开始接收\r\n");
//setMessageToPrint (toprint);

}

}

IF (事件和 RADIO_ABORT_RX)
{
ease_stat = EasyLink_abort();
char toprint[30];
sprintf (toprint、"Aboring Subghz %d \r\n"、ease_stat);
setMessageToPrint (toprint);
// Easy_stat = EasyLink_setCtrl (EasyLink_Ctrl_20D_RX_TIMEOUT、100);
} 

在上面的代码中、每次我运行以下代码

EVENT_POST (radioOperationEventHandle、radio_start_receive); 

下面的编纂语句也是正确的

IF (事件和 RADIO_ABORT_RX) 

对于 RADIO_ABORT_TX 和 RADIO_START_Receive、我已定义了自定义值。  

#define RADIO_START_Receive 0x00091001
#define RADIO_ABORT_RX 0x00091002
#define RADIO_TO_TEST 0x00091003. 

我是否曾使用这些自定义值? 这些是否有任何标准值?

谢谢、此致、

Jonathan