-
Couldn't load subscription status.
- Fork 1.1k
add rom_reset_usb_boot_extra which supports >32 pins and ACTIVE_LOW #2084
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -237,6 +237,25 @@ static inline void __attribute__((noreturn)) reset_usb_boot(uint32_t usb_activit | |
| rom_reset_usb_boot(usb_activity_gpio_pin_mask, disable_interface_mask); | ||
| } | ||
|
|
||
| /*! | ||
| * \brief Reboot the device into BOOTSEL mode | ||
| * \ingroup pico_bootrom | ||
| * | ||
| * This function reboots the device into the BOOTSEL mode ('usb boot"). | ||
| * | ||
| * Facilities are provided to enable an "activity light" via GPIO attached LED for the USB Mass Storage Device, | ||
| * and to limit the USB interfaces exposed. | ||
| * | ||
| * \param usb_activity_gpio_pin GPIO pin to be used as an activitiy pin, or -1 for none | ||
| * from the host. | ||
| * \param disable_interface_mask value to control exposed interfaces | ||
| * - 0 To enable both interfaces (as per a cold boot) | ||
| * - 1 To disable the USB Mass Storage Interface | ||
| * - 2 To disable the USB PICOBOOT Interface | ||
| * \param usb_activity_gpio_pin_active_low Activity GPIO is active low (ignored on RP2040) | ||
| */ | ||
| void __attribute__((noreturn)) rom_reset_usb_boot_extra(int usb_activity_gpio_pin, uint32_t disable_interface_mask, bool usb_activity_gpio_pin_active_low); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| /*! | ||
| * \brief Connect the SSI/QMI to the QSPI pads | ||
| * \ingroup pico_bootrom | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,6 +73,11 @@ | |
|
|
||
| // 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_stdio_usb | ||
|
|
||
| // 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_stdio_usb | ||
| #ifndef PICO_STDIO_USB_RESET_BOOTSEL_FIXED_ACTIVITY_LED_ACTIVE_LOW | ||
| #define PICO_STDIO_USB_RESET_BOOTSEL_FIXED_ACTIVITY_LED_ACTIVE_LOW 0 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should have been |
||
| #endif | ||
|
|
||
| // PICO_CONFIG: PICO_STDIO_USB_RESET_BOOTSEL_FIXED_ACTIVITY_LED, Whether the pin specified by PICO_STDIO_USB_RESET_BOOTSEL_ACTIVITY_LED is fixed or can be modified by picotool over the VENDOR USB interface, type=bool, default=0, group=pico_stdio_usb | ||
| #ifndef PICO_STDIO_USB_RESET_BOOTSEL_FIXED_ACTIVITY_LED | ||
| #define PICO_STDIO_USB_RESET_BOOTSEL_FIXED_ACTIVITY_LED 0 | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.