USB Bulk interrupt (re-triggering)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

USB Bulk interrupt (re-triggering)

952 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by sam_m on Sat Mar 22 21:56:20 MST 2014
If I receive a usb bulk endpoint interrupt but cannot handle the data at that point in time is there a way to exit the interrupt, but cause it to be re-generated at a later point in time?
标签 (1)
0 项奖励
回复
1 回复

901 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by sam_m on Sun Mar 23 08:18:32 MST 2014
Naturally as soon as I post this I think I have the solution..
1. Mark a flag that says "interrupt pending" somewhere and return.
2. in my main code set the endpoint interrupt flag using USBDevIntSet register. This will cause the event to re-trigger.

And something that caught me... USBDevIntSet is a write only register so don't |= your bit in.
0 项奖励
回复