在task中,使用event_pend等待事件触发,事件触发后进行处理。
假设事件的处理需要10s,在这10s中其他线程进行了evnet_post。
请问如上假设的情况下,在不丢失event的情况下,最多event_post多少次?即event有无缓存?缓存多大?
谢谢!
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.
在task中,使用event_pend等待事件触发,事件触发后进行处理。
假设事件的处理需要10s,在这10s中其他线程进行了evnet_post。
请问如上假设的情况下,在不丢失event的情况下,最多event_post多少次?即event有无缓存?缓存多大?
谢谢!
事件缓存这个说法不准确。事件定义的时候是一块内存,此区域有一个变量是用来记录每个事件的发生标记的。TI RTOS的定义如下:
A single Event instance can manage up to 32 events, each represented by an event ID. Event IDs aresimply bit masks that correspond to a unique event managed by the Event object.
TI RTOS使用的其他内容请参考用户手册:
TI 诚邀您参加全新设计的产品页面测试,参加测试即可享有 TI 购物 9 折优惠码,点击加入 EP产品页面测试报名,名额有限。感谢您的参与!