MCPcopy Create free account
hub / github.com/Cpasjuste/pplay / usbInit

Function usbInit

src/usbfs.cpp:39–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void usbInit() {
40
41 Result rc;
42 thrd_t g_thread = {0};
43
44 printf("usbInit\n");
45
46 usbHsFsSetFileSystemMountFlags(UsbHsFsMountFlags_ShowHiddenFiles | UsbHsFsMountFlags_ReadOnly);
47 rc = usbHsFsInitialize(0);
48 printf("usbHsFsInitialize: %u\n", rc);
49 g_statusChangeEvent = usbHsFsGetStatusChangeUserEvent();
50 ueventCreate(&g_exitEvent, true);
51 thrd_create(&g_thread, usbThread, nullptr);
52 sleep(2);
53
54 printf("usbInit: done\n");
55}
56
57#endif

Callers 1

showMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected