mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-04-11 16:37:45 -04:00
pass event data to usb_acknowledge
add second argument to usb_acknowledge. it can be used for more appropriate connection tracking that does not rely on timeout in the future. Change-Id: I8a44366b7c7a1f944524c4ba8ecd6d9673746a65
This commit is contained in:
parent
d5506dfa22
commit
1951c17e0b
33 changed files with 54 additions and 46 deletions
|
|
@ -248,7 +248,7 @@ static void usb_screens_draw(struct usb_screen_vps_t *usb_screen_vps_ar)
|
|||
}
|
||||
}
|
||||
|
||||
void gui_usb_screen_run(bool early_usb)
|
||||
void gui_usb_screen_run(bool early_usb, intptr_t seqnum)
|
||||
{
|
||||
#ifdef SIMULATOR /* the sim allows toggling USB fast enough to overflow viewportmanagers stack */
|
||||
static bool in_usb_screen = false;
|
||||
|
|
@ -297,7 +297,7 @@ void gui_usb_screen_run(bool early_usb)
|
|||
font_disable_all();
|
||||
}
|
||||
|
||||
usb_acknowledge(SYS_USB_CONNECTED_ACK);
|
||||
usb_acknowledge(SYS_USB_CONNECTED_ACK, seqnum);
|
||||
|
||||
while (1)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,10 +21,12 @@
|
|||
#ifndef _USB_SCREEN_H_
|
||||
#define _USB_SCREEN_H_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef USB_NONE
|
||||
#define gui_usb_screen_run(early_usb) do {} while(0)
|
||||
#define gui_usb_screen_run(early_usb, seqnum) do {} while(0)
|
||||
#else
|
||||
extern void gui_usb_screen_run(bool early_usb);
|
||||
extern void gui_usb_screen_run(bool early_usb, intptr_t seqnum);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue