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.

[参考译文] LAUNCHCC3220MODASF:注释掉了#define 语句

Guru**** 2582815 points


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

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/880356/launchcc3220modasf-commented-out-define-sentence

器件型号:LAUNCHCC3220MODASF

各位专家、您好!

安装"simplelink_sdk_wify_plugin_2_40_00_22.exe"后、
C:\ti\simplelink_sdk_wi_plugin_2_40_00_22\source\ti\drivers\net\wifi 中包含 trace.h
在第161行、注释掉如下所示的句子。

//#if (sl_OSI_RET_OK_Handling == sl_Handling _Assert)
//#define OSI_RET_OK_CHECK (Func){_SlReturnVal_t _RetVal =(Func);_SL_Assert ((_SlReturnVal) sl_OS_RET_CODE_OK =
RetVal)}
//#Elif (sl_OSI_RET_OK_Handling == sl_Handling _error)
//#define OSI_RET_OK_CHECK (Func){_SlReturnVal_t _RetVal =(Func);if (sl_OS_RET_CODE_OK!=_RetVal) return
RetVal;}
//#else
#define OSI_RET_OK_CHECK (Func)(Func);
//#endif

这似乎该过程将继续正常、即使注释出函数返回错误。 这是可以的吗?

此致、
A. Fujinaka

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

    感谢您提到这一点。 我希望这与 CC32xx SDK 中的 SimpleLink 主机驱动程序的构建方式一致、但似乎有所不同。 在 CC32xx SDK 中、不会注释掉这些行、并且 SL_OSI_RET_OK_Handling 设置为 SL_Handling 错误。

    您能否取消注释这些行、确保 SL_OS_RET_OK_Handling 定义为 SL_Handling 错误、重新构建并使用您的应用程序进行测试?

    此致、

    本·M