Login
1 branch 0 tags
Ben (Desktop/Arch) Removed placeholder games section d4023dd 1 month ago 47 Commits
moon / firmware / esp32 / main / usb_msc.h
#pragma once
#include <stdbool.h>

// Initialize TinyUSB MSC with the SD card (call after storage_init)
void usb_msc_init(void);

// Returns true once when a USB host has connected (consumes the event)
bool usb_msc_host_connected(void);

// Returns true once when the USB host has disconnected (consumes the event)
bool usb_msc_host_disconnected(void);

// Returns true while a USB host is connected
bool usb_msc_is_connected(void);