Skip to content

Commit af13646

Browse files
committed
Change #if PICO_ON_DEVICE -> #if LIB_PICO_USB_RESET_INTERFACE
Cleaner way of separating the usb_reset_interface.h header
1 parent c5615f1 commit af13646

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/common/pico_usb_reset_interface_headers/include/pico/usb_reset_interface.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@
4141
// regular flash boot
4242
#define RESET_REQUEST_FLASH 0x02
4343

44-
#if PICO_ON_DEVICE
44+
#if LIB_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
46+
4547
// PICO_CONFIG: PICO_STDIO_USB_RESET_BOOTSEL_ACTIVITY_LED, Optionally define a pin to use as bootloader activity LED when BOOTSEL mode is entered via USB (either VIA_BAUD_RATE or VIA_VENDOR_INTERFACE), type=int, min=0, max=47 on RP2350B, 29 otherwise, group=pico_usb_reset_interface
4648

4749
// PICO_CONFIG: PICO_STDIO_USB_RESET_BOOTSEL_ACTIVITY_LED_ACTIVE_LOW, Whether pin to use as bootloader activity LED when BOOTSEL mode is entered via USB (either VIA_BAUD_RATE or VIA_VENDOR_INTERFACE) is active low, type=bool, default=0, group=pico_usb_reset_interface

0 commit comments

Comments
 (0)