TI中文支持网
TI专业的中文技术问题搜集分享网站

有关于Ti simpleLink 设备CC3220SF 的范例Http_get中创建sl_Task线程接口用来初始化simpleLink的API接口,SimpleLinkNetAppEventHandler函数的调用是如何实现的?

Other Parts Discussed in Thread:CC3220SF

关于Ti simpleLink 设备CC3220SF 的范例Httpget

1,创建sl_Task线程接口用来初始化simpleLink的API接口,sl_Task线程具体的说明在Ti有没有相关的文档说明?

2,SimpleLinkNetAppEventHandler函数的调用是如何实现的?

Viki Shi:

1、 sl_Task()
void* sl_Task ( void *pEntry )
The SimpleLink task entry.

This function must be called from the main loop or from dedicated thread in the following cases:

Non-Os Platform – should be called from the mail loop
Multi Threaded Platform when the user does not implement the external spawn functions – should be called from dedicated thread allocated to the SimpleLink driver. In this mode the function never return.
parameters
None
Returns
None
See also
Note
Belongs to basic_api
Warning
This function must be called from a thread that is start running before any call to other SimpleLink API
Definition at line 105 of file device.c.
{#ifdef _SlTaskEntryreturn (void*)_SlTaskEntry();#elsereturn (void*)0;#endif}

详情请看:dev.ti.com/…/group___device.html

2、SimpleLinkNetAppEventHandler这个是在NWP或者host driver报告Netapp 事件时调用的,用户也可以添加自己的逻辑。具体调用可参考 'network_terminal'例程以及SWRU455文档

赞(0)
未经允许不得转载:TI中文支持网 » 有关于Ti simpleLink 设备CC3220SF 的范例Http_get中创建sl_Task线程接口用来初始化simpleLink的API接口,SimpleLinkNetAppEventHandler函数的调用是如何实现的?
分享到: 更多 (0)