From 61e46fefe52729e7321a8277eba4f249f243e32a Mon Sep 17 00:00:00 2001 From: graham sanderson Date: Sat, 27 Feb 2021 19:31:29 -0600 Subject: [PATCH] Add binary info 'feature' for pico_bootsel_via_double_reset --- .../pico_bootsel_via_double_reset.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rp2_common/pico_bootsel_via_double_reset/pico_bootsel_via_double_reset.c b/src/rp2_common/pico_bootsel_via_double_reset/pico_bootsel_via_double_reset.c index 28c32ba..451a871 100644 --- a/src/rp2_common/pico_bootsel_via_double_reset/pico_bootsel_via_double_reset.c +++ b/src/rp2_common/pico_bootsel_via_double_reset/pico_bootsel_via_double_reset.c @@ -7,6 +7,7 @@ #include "pico.h" #include "pico/time.h" #include "pico/bootrom.h" +#include "pico/binary_info.h" // PICO_CONFIG: PICO_BOOTSEL_VIA_DOUBLE_RESET_TIMEOUT_MS, Window of opportunity for a second press of a reset button to enter BOOTSEL mode (milliseconds), type=int, default=200, group=pico_bootsel_via_double_reset #ifndef PICO_BOOTSEL_VIA_DOUBLE_RESET_TIMEOUT_MS @@ -33,6 +34,10 @@ * library is always linked. */ +#if !PICO_NO_BI_BOOTSEL_VIA_DOUBLE_RESET +bi_decl(bi_program_feature("double reset -> BOOTSEL")); +#endif + // Doesn't make any sense for a RAM only binary #if !PICO_NO_FLASH static const uint32_t magic_token[] = {