MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / usb_device_event

Function usb_device_event

core/usb/usb.c:194–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194static void usb_device_event(enum sched_item_id event) {
195 (void)event;
196 usb.event.type = USB_TIMER_EVENT;
197 usb_dispatch_event();
198}
199
200uint8_t usb_status(void) {
201 return (usb.regs.otgcsr & (OTGCSR_A_VBUS_VLD | OTGCSR_A_SESS_VLD | OTGCSR_B_SESS_VLD) ? 0x80 : 0) |

Callers

nothing calls this directly

Calls 1

usb_dispatch_eventFunction · 0.85

Tested by

no test coverage detected