STM32: USB: always perform non-blocking I/O for EP0
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 22 Sep 2010 10:18:29 +0000 (10:18 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 22 Sep 2010 10:18:29 +0000 (10:18 +0000)
commit08eb84f9adca434cbc682642aea5f3a7aea17187
tree22651c7d70d965dcfd215959e4b1ce882fa9ea24
parent489b283ff1f2f430ec47cbd2e1fc477aa033ce98
STM32: USB: always perform non-blocking I/O for EP0

Control endpoint I/O can happen under IRQ context, so we should never
sleep.

Change the behaviour of usb_ep_read/write() to never sleep if the
operation is performed by the control endpoint (EP0).

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4255 38d2e660-2303-0410-9eaa-f027e97ec537
bertos/cpu/cortex-m3/drv/usb_stm32.c