Some fixes

This commit is contained in:
me-no-dev
2020-08-22 23:37:42 +03:00
parent 0ac788f666
commit 86c87aaeee
6 changed files with 78 additions and 8 deletions

View File

@ -61,6 +61,19 @@ typedef struct {
esp_err_t tinyusb_init(tinyusb_device_config_t *config);
/*
* USB Persistence API
* */
typedef enum {
RESTART_NO_PERSIST,
RESTART_PERSIST,
RESTART_BOOTLOADER,
RESTART_BOOTLOADER_DFU,
RESTART_TYPE_MAX
} restart_type_t;
void usb_persist_restart(restart_type_t mode);
// The following definitions and functions are to be used only by the drivers
typedef enum {
USB_INTERFACE_CDC,