14// PICO_CONFIG: PICO_FLASH_SPI_CLKDIV, Clock divider from clk_sys to use for serial flash communications in boot stage 2. On RP2040 this must be a multiple of 2. This define applies to compilation of the boot stage 2 not the main application, type=int, default=varies; often specified in board header, advanced=true, group=boot_stage2
15// PICO_CONFIG: PICO_FLASH_SPI_RXDELAY, Receive delay in 1/2 clock cycles to use for serial flash communications in boot stage 2. This define applies to compilation of the boot stage 2 not the main application, type=int, default=varies; often specified in board header, advanced=true, group=boot_stage2
16
17// PICO_CONFIG: PICO_BUILD_BOOT_STAGE2_NAME, Name of the boot stage 2 if selected in the build system. This define applies to compilation of the boot stage 2 not the main application, group=boot_stage2
18#ifdef PICO_BUILD_BOOT_STAGE2_NAME
19 #define _BOOT_STAGE2_SELECTED
20#else
21// check that multiple boot stage 2 options haven't been set...
22
23// PICO_CONFIG: PICO_BOOT_STAGE2_CHOOSE_IS25LP080, Select boot2_is25lp080 as the boot stage 2 when no boot stage 2 selection is made by the CMake build. This define applies to compilation of the boot stage 2 not the main application, type=bool, default=0, group=boot_stage2
24#ifndef PICO_BOOT_STAGE2_CHOOSE_IS25LP080
25 #define PICO_BOOT_STAGE2_CHOOSE_IS25LP080 0
26#elif PICO_BOOT_STAGE2_CHOOSE_IS25LP080
27 #ifdef _BOOT_STAGE2_SELECTED
28 #error multiple boot stage 2 options chosen
29 #endif
30 #define _BOOT_STAGE2_SELECTED
31#endif
32// PICO_CONFIG: PICO_BOOT_STAGE2_CHOOSE_W25Q080, Select boot2_w25q080 as the boot stage 2 when no boot stage 2 selection is made by the CMake build. This define applies to compilation of the boot stage 2 not the main application, type=bool, default=0, group=boot_stage2
33#ifndef PICO_BOOT_STAGE2_CHOOSE_W25Q080
34 #define PICO_BOOT_STAGE2_CHOOSE_W25Q080 0
35#elif PICO_BOOT_STAGE2_CHOOSE_W25Q080
36 #ifdef _BOOT_STAGE2_SELECTED
37 #error multiple boot stage 2 options chosen
38 #endif
39 #define _BOOT_STAGE2_SELECTED
40#endif
41// PICO_CONFIG: PICO_BOOT_STAGE2_CHOOSE_W25X10CL, Select boot2_w25x10cl as the boot stage 2 when no boot stage 2 selection is made by the CMake build. This define applies to compilation of the boot stage 2 not the main application, type=bool, default=0, group=boot_stage2
42#ifndef PICO_BOOT_STAGE2_CHOOSE_W25X10CL
43 #define PICO_BOOT_STAGE2_CHOOSE_W25X10CL 0
44#elif PICO_BOOT_STAGE2_CHOOSE_W25X10CL
45 #ifdef _BOOT_STAGE2_SELECTED
46 #error multiple boot stage 2 options chosen
47 #endif
48 #define _BOOT_STAGE2_SELECTED
49#endif
50// PICO_CONFIG: PICO_BOOT_STAGE2_CHOOSE_AT25SF128A, Select boot2_at25sf128a as the boot stage 2 when no boot stage 2 selection is made by the CMake build. This define applies to compilation of the boot stage 2 not the main application, type=bool, default=0, group=boot_stage2
51#ifndef PICO_BOOT_STAGE2_CHOOSE_AT25SF128A
52 #define PICO_BOOT_STAGE2_CHOOSE_AT25SF128A 0
53#elif PICO_BOOT_STAGE2_CHOOSE_AT25SF128A
54 #ifdef _BOOT_STAGE2_SELECTED
55 #error multiple boot stage 2 options chosen
56 #endif
57 #define _BOOT_STAGE2_SELECTED
58#endif
59
60// PICO_CONFIG: PICO_BOOT_STAGE2_CHOOSE_GENERIC_03H, Select boot2_generic_03h as the boot stage 2 when no boot stage 2 selection is made by the CMake build. This define applies to compilation of the boot stage 2 not the main application, type=bool, default=1, group=boot_stage2