split out usb_reset_interface header into its own library for consumption by picotool or others (#589)

This commit is contained in:
Graham Sanderson
2021-10-07 08:17:13 -05:00
committed by GitHub
parent 0fdf543126
commit 13ed99df0d
5 changed files with 34 additions and 12 deletions

View File

@ -14,5 +14,6 @@ if (TARGET tinyusb_device_unmarked)
pico_stdio
pico_time
pico_unique_id
pico_usb_reset_interface_headers
)
endif()

View File

@ -7,17 +7,7 @@
#ifndef _PICO_STDIO_USB_RESET_INTERFACE_H
#define _PICO_STDIO_USB_RESET_INTERFACE_H
// We use VENDOR, 0, 0 for PICOBOOT, so lets use VENDOR, 0, 1 for RESET
// definitions have been moved here
#include "pico/usb_reset_interface.h"
// VENDOR sub-class for the reset interface
#define RESET_INTERFACE_SUBCLASS 0x00
// VENDOR protocol for the reset interface
#define RESET_INTERFACE_PROTOCOL 0x01
// CONTROL requests:
// reset to BOOTSEL
#define RESET_REQUEST_BOOTSEL 0x01
// regular flash boot
#define RESET_REQUEST_FLASH 0x02
#endif