mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
USB event poll support
This patch adds USB event poll support, which could be used in usbkbd and other usb devices driver when the asynchronous interrupt processing is supported. Signed-off-by: Zhang Wei <wei.zhang@freescale.com
This commit is contained in:
committed by
Markus Klotzbuecher
parent
9a1d00fa47
commit
fdcfaa1b02
@@ -129,7 +129,11 @@ static int usb_kbd_testc(void)
|
||||
static int usb_kbd_getc(void)
|
||||
{
|
||||
char c;
|
||||
while(usb_in_pointer==usb_out_pointer);
|
||||
while(usb_in_pointer==usb_out_pointer) {
|
||||
#ifdef CFG_USB_EVENT_POLL
|
||||
usb_event_poll();
|
||||
#endif
|
||||
}
|
||||
if((usb_out_pointer+1)==USB_KBD_BUFFER_LEN)
|
||||
usb_out_pointer=0;
|
||||
else
|
||||
|
Reference in New Issue
Block a user