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

Function init_usb

core/usb/usb.c:523–529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521};
522
523eZ80portrange_t init_usb(void) {
524 memset(&usb, 0, sizeof usb);
525 usb_init_hccr();
526 usb_reset();
527 gui_console_printf("[CEmu] Initialized USB...\n");
528 return device;
529}
530
531bool usb_save(FILE *image) {
532 return fwrite(&usb, offsetof(usb_state_t, event), 1, image) == 1;

Callers 1

plug_devicesFunction · 0.85

Calls 3

usb_init_hccrFunction · 0.85
usb_resetFunction · 0.85
gui_console_printfFunction · 0.50

Tested by

no test coverage detected