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
16// 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
17#ifdef PICO_BUILD_BOOT_STAGE2_NAME
18 #define _BOOT_STAGE2_SELECTED
19#else
20// check that multiple boot stage 2 options haven't been set...
21
22// 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
23#ifndef PICO_BOOT_STAGE2_CHOOSE_IS25LP080
24 #define PICO_BOOT_STAGE2_CHOOSE_IS25LP080 0
25#elif PICO_BOOT_STAGE2_CHOOSE_IS25LP080
26 #ifdef _BOOT_STAGE2_SELECTED
27 #error multiple boot stage 2 options chosen
28 #endif
29 #define _BOOT_STAGE2_SELECTED
30#endif
31// 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
32#ifndef PICO_BOOT_STAGE2_CHOOSE_W25Q080
33 #define PICO_BOOT_STAGE2_CHOOSE_W25Q080 0
34#elif PICO_BOOT_STAGE2_CHOOSE_W25Q080
35 #ifdef _BOOT_STAGE2_SELECTED
36 #error multiple boot stage 2 options chosen
37 #endif
38 #define _BOOT_STAGE2_SELECTED
39#endif
40// 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
41#ifndef PICO_BOOT_STAGE2_CHOOSE_W25X10CL
42 #define PICO_BOOT_STAGE2_CHOOSE_W25X10CL 0
43#elif PICO_BOOT_STAGE2_CHOOSE_W25X10CL
44 #ifdef _BOOT_STAGE2_SELECTED
45 #error multiple boot stage 2 options chosen
46 #endif
47 #define _BOOT_STAGE2_SELECTED
48#endif
49// 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
50#ifndef PICO_BOOT_STAGE2_CHOOSE_AT25SF128A
51 #define PICO_BOOT_STAGE2_CHOOSE_AT25SF128A 0
52#elif PICO_BOOT_STAGE2_CHOOSE_AT25SF128A
53 #ifdef _BOOT_STAGE2_SELECTED
54 #error multiple boot stage 2 options chosen
55 #endif
56 #define _BOOT_STAGE2_SELECTED
57#endif
58
59// 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