split out usb_reset_interface header into its own library for consumption by picotool or others (#589)
This commit is contained in:
@ -14,5 +14,6 @@ if (TARGET tinyusb_device_unmarked)
|
||||
pico_stdio
|
||||
pico_time
|
||||
pico_unique_id
|
||||
pico_usb_reset_interface_headers
|
||||
)
|
||||
endif()
|
||||
|
@ -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
|
Reference in New Issue
Block a user