|
11 | 11 |
|
12 | 12 | #include "pico.h"
|
13 | 13 |
|
14 |
| -// PICO_CONFIG: PICO_BUILD_BOOT_STAGE2_NAME, Name of the boot stage 2 if selected in the build system, group=boot_stage2 |
| 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 |
15 | 18 | #ifdef PICO_BUILD_BOOT_STAGE2_NAME
|
16 | 19 | #define _BOOT_STAGE2_SELECTED
|
17 | 20 | #else
|
18 | 21 | // check that multiple boot stage 2 options haven't been set...
|
19 | 22 |
|
20 |
| -// 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, type=bool, default=0, group=boot_stage2 |
| 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 |
21 | 24 | #ifndef PICO_BOOT_STAGE2_CHOOSE_IS25LP080
|
22 | 25 | #define PICO_BOOT_STAGE2_CHOOSE_IS25LP080 0
|
23 | 26 | #elif PICO_BOOT_STAGE2_CHOOSE_IS25LP080
|
|
26 | 29 | #endif
|
27 | 30 | #define _BOOT_STAGE2_SELECTED
|
28 | 31 | #endif
|
29 |
| -// 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, type=bool, default=0, group=boot_stage2 |
| 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 |
30 | 33 | #ifndef PICO_BOOT_STAGE2_CHOOSE_W25Q080
|
31 | 34 | #define PICO_BOOT_STAGE2_CHOOSE_W25Q080 0
|
32 | 35 | #elif PICO_BOOT_STAGE2_CHOOSE_W25Q080
|
|
35 | 38 | #endif
|
36 | 39 | #define _BOOT_STAGE2_SELECTED
|
37 | 40 | #endif
|
38 |
| -// 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, type=bool, default=0, group=boot_stage2 |
| 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 |
39 | 42 | #ifndef PICO_BOOT_STAGE2_CHOOSE_W25X10CL
|
40 | 43 | #define PICO_BOOT_STAGE2_CHOOSE_W25X10CL 0
|
41 | 44 | #elif PICO_BOOT_STAGE2_CHOOSE_W25X10CL
|
|
44 | 47 | #endif
|
45 | 48 | #define _BOOT_STAGE2_SELECTED
|
46 | 49 | #endif
|
47 |
| -// 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, type=bool, default=0, group=boot_stage2 |
| 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 |
48 | 51 | #ifndef PICO_BOOT_STAGE2_CHOOSE_AT25SF128A
|
49 | 52 | #define PICO_BOOT_STAGE2_CHOOSE_AT25SF128A 0
|
50 | 53 | #elif PICO_BOOT_STAGE2_CHOOSE_AT25SF128A
|
|
54 | 57 | #define _BOOT_STAGE2_SELECTED
|
55 | 58 | #endif
|
56 | 59 |
|
57 |
| -// 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, type=bool, default=1, group=boot_stage2 |
| 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 |
58 | 61 | #if defined(PICO_BOOT_STAGE2_CHOOSE_GENERIC_03H) && PICO_BOOT_STAGE2_CHOOSE_GENERIC_03H
|
59 | 62 | #ifdef _BOOT_STAGE2_SELECTED
|
60 | 63 | #error multiple boot stage 2 options chosen
|
|
0 commit comments