You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 3. Add `TUD_RPI_RESET_DESCRIPTOR(<ITF_NUM>, <STR_IDX>)` to your USB descriptors (length is `TUD_RPI_RESET_DESC_LEN`)
23
-
* 4. Check if your project has an existing `usbd_app_driver_get_cb` function:
24
-
* - If it does, you need to add the `pico_usb_reset_interface_driver` to the drivers returned
25
-
* - If it does not, and you aren't using the `pico_stdio_usb` library, you need to define `PICO_STDIO_USB_RESET_INCLUDE_APP_DRIVER_CB=1`
26
-
* 5. Check if your project has an existing Microsoft OS 2.0 Descriptor:
27
-
* - If it does, you need to add the Function Subset header `RPI_RESET_MS_OS_20_DESCRIPTOR(<ITF_NUM>)` to your Microsoft OS 2.0 Descriptor (length is `RPI_RESET_MS_OS_20_DESC_LEN`)
28
-
* - If it does not, you need to define `PICO_STDIO_USB_RESET_INTERFACE_SUPPORT_MS_OS_20_DESCRIPTOR=1` and `PICO_STDIO_USB_RESET_INTERFACE_MS_OS_20_DESCRIPTOR_ITF=<ITF_NUM>`
13
+
* \brief Definition for the reset interface that may be exposed by the pico_stdio_usb library
29
14
*/
30
15
31
-
// These defines are used by picotool
32
16
// VENDOR sub-class for the reset interface
33
17
#defineRESET_INTERFACE_SUBCLASS 0x00
34
18
// VENDOR protocol for the reset interface
@@ -41,12 +25,4 @@
41
25
// regular flash boot
42
26
#defineRESET_REQUEST_FLASH 0x02
43
27
44
-
#ifLIB_PICO_USB_RESET_INTERFACE
45
-
// These defines are only used by the pico_usb_reset_interface library, not the pico_usb_reset_interface_headers library
* 3. Add `TUD_RPI_RESET_DESCRIPTOR(<ITF_NUM>, <STR_IDX>)` to your USB descriptors (length is `TUD_RPI_RESET_DESC_LEN`)
23
+
* 4. Check if your project has an existing `usbd_app_driver_get_cb` function:
24
+
* - If it does, you need to add the `pico_usb_reset_interface_driver` to the drivers returned
25
+
* - If it does not, and you aren't using the `pico_stdio_usb` library, you need to define `PICO_STDIO_USB_RESET_INCLUDE_APP_DRIVER_CB=1`
26
+
* 5. Check if your project has an existing Microsoft OS 2.0 Descriptor:
27
+
* - If it does, you need to add the Function Subset header `RPI_RESET_MS_OS_20_DESCRIPTOR(<ITF_NUM>)` to your Microsoft OS 2.0 Descriptor (length is `RPI_RESET_MS_OS_20_DESC_LEN`)
28
+
* - If it does not, you need to define `PICO_STDIO_USB_RESET_INTERFACE_SUPPORT_MS_OS_20_DESCRIPTOR=1` and `PICO_STDIO_USB_RESET_INTERFACE_MS_OS_20_DESCRIPTOR_ITF=<ITF_NUM>`
0 commit comments