mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
add some missing pico_config and pico_cmake_config entries (#2559)
This commit is contained in:
parent
e298fe60f1
commit
3461d65d79
18 changed files with 42 additions and 24 deletions
|
|
@ -247,7 +247,7 @@ label_flag(
|
||||||
build_setting_default = "//bazel:generate_config_header",
|
build_setting_default = "//bazel:generate_config_header",
|
||||||
)
|
)
|
||||||
|
|
||||||
# PICO_BAZEL_CONFIG: PICO_CLIB, [Bazel only] The flavor of libc porting layer to use. auto infers the correct value to use from PICO_TOOLCHAIN, group=pico_standard_link
|
# PICO_BAZEL_CONFIG: PICO_CLIB, The C library to use e.g. newlib/picolibc/llvm_libc, type=string, default=based on PICO_COMPILER, group=build, docref=cmake-toolchain-config
|
||||||
string_flag(
|
string_flag(
|
||||||
name = "PICO_CLIB",
|
name = "PICO_CLIB",
|
||||||
build_setting_default = "auto",
|
build_setting_default = "auto",
|
||||||
|
|
|
||||||
|
|
@ -15,22 +15,28 @@ set(PICO_SAVED_PLATFORM "${PICO_PLATFORM}")
|
||||||
|
|
||||||
# If PICO_PLATFORM is specified but not PICO_BOARD, we'll make a stab at defaulting
|
# If PICO_PLATFORM is specified but not PICO_BOARD, we'll make a stab at defaulting
|
||||||
if (NOT PICO_DEFAULT_BOARD_rp2040)
|
if (NOT PICO_DEFAULT_BOARD_rp2040)
|
||||||
|
# PICO_CMAKE_CONFIG: PICO_DEFAULT_BOARD_rp2040, The default PICO_BOARD when PICO_PLATFORM is rp2040, type=string, default=pico, group=build, docref=cmake-platform-board-config
|
||||||
set(PICO_DEFAULT_BOARD_rp2040 "pico")
|
set(PICO_DEFAULT_BOARD_rp2040 "pico")
|
||||||
endif()
|
endif()
|
||||||
if (NOT PICO_DEFAULT_BOARD_rp2350)
|
if (NOT PICO_DEFAULT_BOARD_rp2350)
|
||||||
|
# PICO_CMAKE_CONFIG: PICO_DEFAULT_BOARD_rp2350, The default PICO_BOARD when PICO_PLATFORM is rp2350, type=string, default=pico2, group=build, docref=cmake-platform-board-config
|
||||||
set(PICO_DEFAULT_BOARD_rp2350 "pico2")
|
set(PICO_DEFAULT_BOARD_rp2350 "pico2")
|
||||||
endif()
|
endif()
|
||||||
if (NOT PICO_DEFAULT_BOARD_rp2350-arm-s)
|
if (NOT PICO_DEFAULT_BOARD_rp2350-arm-s)
|
||||||
|
# PICO_CMAKE_CONFIG: PICO_DEFAULT_BOARD_rp2350-arm-s, The default PICO_BOARD when PICO_PLATFORM is rp2350-arm-s, type=string, default=pico2, group=build, docref=cmake-platform-board-config
|
||||||
set(PICO_DEFAULT_BOARD_rp2350-arm-s "pico2")
|
set(PICO_DEFAULT_BOARD_rp2350-arm-s "pico2")
|
||||||
endif()
|
endif()
|
||||||
if (NOT PICO_DEFAULT_BOARD_rp2350-riscv)
|
if (NOT PICO_DEFAULT_BOARD_rp2350-riscv)
|
||||||
|
# PICO_CMAKE_CONFIG: PICO_DEFAULT_BOARD_rp2350-riscv, The default PICO_BOARD when PICO_PLATFORM is rp2350-riscv, type=string, default=pico2, group=build, docref=cmake-platform-board-config
|
||||||
set(PICO_DEFAULT_BOARD_rp2350-riscv "pico2")
|
set(PICO_DEFAULT_BOARD_rp2350-riscv "pico2")
|
||||||
endif()
|
endif()
|
||||||
if (NOT PICO_DEFAULT_BOARD_host)
|
if (NOT PICO_DEFAULT_BOARD_host)
|
||||||
|
# PICO_CMAKE_CONFIG: PICO_DEFAULT_BOARD_host, The default PICO_BOARD when PICO_PLATFORM is host, type=string, default=none, group=build, docref=cmake-platform-board-config
|
||||||
set(PICO_DEFAULT_BOARD_host "none")
|
set(PICO_DEFAULT_BOARD_host "none")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (NOT PICO_DEFAULT_PLATFORM)
|
if (NOT PICO_DEFAULT_PLATFORM)
|
||||||
|
# PICO_CMAKE_CONFIG: PICO_DEFAULT_PLATFORM, The default for PICO_PLATFORM if not specified, type=string, default=rp2040, group=build, docref=cmake-platform-board-config
|
||||||
set(PICO_DEFAULT_PLATFORM "rp2040")
|
set(PICO_DEFAULT_PLATFORM "rp2040")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
@ -72,7 +78,7 @@ endif()
|
||||||
|
|
||||||
list(APPEND PICO_INCLUDE_DIRS ${PICO_SDK_PATH}/src/boards/include) # so boards/foo.h can be explicitly included
|
list(APPEND PICO_INCLUDE_DIRS ${PICO_SDK_PATH}/src/boards/include) # so boards/foo.h can be explicitly included
|
||||||
|
|
||||||
# PICO_CMAKE_CONFIG: PICO_DEFAULT_RP2350_PLATFORM, Default actual platform to build for if rp2350 is specified for PICO_PLATFORM e.g. rp2350-arm-s/rp2350-riscv, type=string, default=rp2350-arm-s, group=build
|
# PICO_CMAKE_CONFIG: PICO_DEFAULT_RP2350_PLATFORM, Default actual platform to build for if rp2350 is specified for PICO_PLATFORM e.g. rp2350-arm-s/rp2350-riscv, type=string, default=rp2350-arm-s, group=build, docref=cmake-platform-board-config
|
||||||
if (DEFINED ENV{PICO_DEFAULT_RP2350_PLATFORM} AND NOT PICO_DEFAULT_RP2350_PLATFORM)
|
if (DEFINED ENV{PICO_DEFAULT_RP2350_PLATFORM} AND NOT PICO_DEFAULT_RP2350_PLATFORM)
|
||||||
set(PICO_DEFAULT_RP2350_PLATFORM $ENV{PICO_DEFAULT_RP2350_PLATFORM})
|
set(PICO_DEFAULT_RP2350_PLATFORM $ENV{PICO_DEFAULT_RP2350_PLATFORM})
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,7 @@ if (DEFINED PICO_COMPILER)
|
||||||
if (NOT PICO_COMPILER STREQUAL ORIG_PICO_COMPILER)
|
if (NOT PICO_COMPILER STREQUAL ORIG_PICO_COMPILER)
|
||||||
message("Accepting PICO_COMPILER value '${ORIG_PICO_COMPILER}' for compatibility, but using '${PICO_COMPILER}' instead")
|
message("Accepting PICO_COMPILER value '${ORIG_PICO_COMPILER}' for compatibility, but using '${PICO_COMPILER}' instead")
|
||||||
endif()
|
endif()
|
||||||
|
# PICO_CMAKE_CONFIG: PICO_TOOLCHAIN_DIR, Path to search for toolchain CMake files, type=string, default=<sdk_path>/preload/toolchains, group=build, docref=cmake-toolchain-config
|
||||||
if (NOT DEFINED PICO_TOOLCHAIN_DIR)
|
if (NOT DEFINED PICO_TOOLCHAIN_DIR)
|
||||||
set(PICO_TOOLCHAIN_DIR "${CMAKE_CURRENT_LIST_DIR}/preload/toolchains")
|
set(PICO_TOOLCHAIN_DIR "${CMAKE_CURRENT_LIST_DIR}/preload/toolchains")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ set(PICO_DEFAULT_GCC_TRIPLE arm-none-eabi)
|
||||||
|
|
||||||
set(PICO_COMMON_LANG_FLAGS " -mcpu=cortex-m33 -mthumb -march=armv8-m.main+fp+dsp")
|
set(PICO_COMMON_LANG_FLAGS " -mcpu=cortex-m33 -mthumb -march=armv8-m.main+fp+dsp")
|
||||||
set(PICO_COMMON_LANG_FLAGS "${PICO_COMMON_LANG_FLAGS} -mfloat-abi=softfp")
|
set(PICO_COMMON_LANG_FLAGS "${PICO_COMMON_LANG_FLAGS} -mfloat-abi=softfp")
|
||||||
|
# PICO_CMAKE_CONFIG: PICO_NO_CMSE, Disable CMSE compiler extensions, type=bool, default=0, group=build, docref=cmake-toolchain-config
|
||||||
if (NOT PICO_NO_CMSE)
|
if (NOT PICO_NO_CMSE)
|
||||||
set(PICO_COMMON_LANG_FLAGS "${PICO_COMMON_LANG_FLAGS} -mcmse")
|
set(PICO_COMMON_LANG_FLAGS "${PICO_COMMON_LANG_FLAGS} -mcmse")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
|
# PICO_CMAKE_CONFIG: PICO_DEOPTIMIZED_DEBUG, Disable all compiler optimization in debug builds, type=bool, default=0, group=build, docref=cmake-toolchain-config
|
||||||
option(PICO_DEOPTIMIZED_DEBUG "Build debug builds with -O0" 0)
|
option(PICO_DEOPTIMIZED_DEBUG "Build debug builds with -O0" 0)
|
||||||
|
# PICO_CMAKE_CONFIG: PICO_DEBUG_INFO_IN_RELEASE, Include debug information in release builds, type=bool, default=1, group=build, docref=cmake-toolchain-config
|
||||||
option(PICO_DEBUG_INFO_IN_RELEASE "Include debug info in release builds" 1)
|
option(PICO_DEBUG_INFO_IN_RELEASE "Include debug info in release builds" 1)
|
||||||
|
|
||||||
get_property(IS_IN_TRY_COMPILE GLOBAL PROPERTY IN_TRY_COMPILE)
|
get_property(IS_IN_TRY_COMPILE GLOBAL PROPERTY IN_TRY_COMPILE)
|
||||||
|
|
|
||||||
|
|
@ -11,13 +11,15 @@
|
||||||
|
|
||||||
#include "pico.h"
|
#include "pico.h"
|
||||||
|
|
||||||
// PICO_CONFIG: PICO_BUILD_BOOT_STAGE2_NAME, Name of the boot stage 2 if selected in the build system, group=boot_stage2
|
// 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
|
||||||
|
|
||||||
|
// 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
|
||||||
#ifdef PICO_BUILD_BOOT_STAGE2_NAME
|
#ifdef PICO_BUILD_BOOT_STAGE2_NAME
|
||||||
#define _BOOT_STAGE2_SELECTED
|
#define _BOOT_STAGE2_SELECTED
|
||||||
#else
|
#else
|
||||||
// check that multiple boot stage 2 options haven't been set...
|
// check that multiple boot stage 2 options haven't been set...
|
||||||
|
|
||||||
// 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
|
// 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
|
||||||
#ifndef PICO_BOOT_STAGE2_CHOOSE_IS25LP080
|
#ifndef PICO_BOOT_STAGE2_CHOOSE_IS25LP080
|
||||||
#define PICO_BOOT_STAGE2_CHOOSE_IS25LP080 0
|
#define PICO_BOOT_STAGE2_CHOOSE_IS25LP080 0
|
||||||
#elif PICO_BOOT_STAGE2_CHOOSE_IS25LP080
|
#elif PICO_BOOT_STAGE2_CHOOSE_IS25LP080
|
||||||
|
|
@ -26,7 +28,7 @@
|
||||||
#endif
|
#endif
|
||||||
#define _BOOT_STAGE2_SELECTED
|
#define _BOOT_STAGE2_SELECTED
|
||||||
#endif
|
#endif
|
||||||
// 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
|
// 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
|
||||||
#ifndef PICO_BOOT_STAGE2_CHOOSE_W25Q080
|
#ifndef PICO_BOOT_STAGE2_CHOOSE_W25Q080
|
||||||
#define PICO_BOOT_STAGE2_CHOOSE_W25Q080 0
|
#define PICO_BOOT_STAGE2_CHOOSE_W25Q080 0
|
||||||
#elif PICO_BOOT_STAGE2_CHOOSE_W25Q080
|
#elif PICO_BOOT_STAGE2_CHOOSE_W25Q080
|
||||||
|
|
@ -35,7 +37,7 @@
|
||||||
#endif
|
#endif
|
||||||
#define _BOOT_STAGE2_SELECTED
|
#define _BOOT_STAGE2_SELECTED
|
||||||
#endif
|
#endif
|
||||||
// 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
|
// 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
|
||||||
#ifndef PICO_BOOT_STAGE2_CHOOSE_W25X10CL
|
#ifndef PICO_BOOT_STAGE2_CHOOSE_W25X10CL
|
||||||
#define PICO_BOOT_STAGE2_CHOOSE_W25X10CL 0
|
#define PICO_BOOT_STAGE2_CHOOSE_W25X10CL 0
|
||||||
#elif PICO_BOOT_STAGE2_CHOOSE_W25X10CL
|
#elif PICO_BOOT_STAGE2_CHOOSE_W25X10CL
|
||||||
|
|
@ -44,7 +46,7 @@
|
||||||
#endif
|
#endif
|
||||||
#define _BOOT_STAGE2_SELECTED
|
#define _BOOT_STAGE2_SELECTED
|
||||||
#endif
|
#endif
|
||||||
// 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
|
// 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
|
||||||
#ifndef PICO_BOOT_STAGE2_CHOOSE_AT25SF128A
|
#ifndef PICO_BOOT_STAGE2_CHOOSE_AT25SF128A
|
||||||
#define PICO_BOOT_STAGE2_CHOOSE_AT25SF128A 0
|
#define PICO_BOOT_STAGE2_CHOOSE_AT25SF128A 0
|
||||||
#elif PICO_BOOT_STAGE2_CHOOSE_AT25SF128A
|
#elif PICO_BOOT_STAGE2_CHOOSE_AT25SF128A
|
||||||
|
|
@ -54,7 +56,7 @@
|
||||||
#define _BOOT_STAGE2_SELECTED
|
#define _BOOT_STAGE2_SELECTED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// 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
|
// 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
|
||||||
#if defined(PICO_BOOT_STAGE2_CHOOSE_GENERIC_03H) && PICO_BOOT_STAGE2_CHOOSE_GENERIC_03H
|
#if defined(PICO_BOOT_STAGE2_CHOOSE_GENERIC_03H) && PICO_BOOT_STAGE2_CHOOSE_GENERIC_03H
|
||||||
#ifdef _BOOT_STAGE2_SELECTED
|
#ifdef _BOOT_STAGE2_SELECTED
|
||||||
#error multiple boot stage 2 options chosen
|
#error multiple boot stage 2 options chosen
|
||||||
|
|
|
||||||
|
|
@ -11,13 +11,16 @@
|
||||||
|
|
||||||
#include "pico.h"
|
#include "pico.h"
|
||||||
|
|
||||||
// PICO_CONFIG: PICO_BUILD_BOOT_STAGE2_NAME, Name of the boot stage 2 if selected in the build system, group=boot_stage2
|
// 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
|
||||||
|
// 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
|
||||||
|
|
||||||
|
// 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
|
||||||
#ifdef PICO_BUILD_BOOT_STAGE2_NAME
|
#ifdef PICO_BUILD_BOOT_STAGE2_NAME
|
||||||
#define _BOOT_STAGE2_SELECTED
|
#define _BOOT_STAGE2_SELECTED
|
||||||
#else
|
#else
|
||||||
// check that multiple boot stage 2 options haven't been set...
|
// check that multiple boot stage 2 options haven't been set...
|
||||||
|
|
||||||
// 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
|
// 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
|
||||||
#ifndef PICO_BOOT_STAGE2_CHOOSE_IS25LP080
|
#ifndef PICO_BOOT_STAGE2_CHOOSE_IS25LP080
|
||||||
#define PICO_BOOT_STAGE2_CHOOSE_IS25LP080 0
|
#define PICO_BOOT_STAGE2_CHOOSE_IS25LP080 0
|
||||||
#elif PICO_BOOT_STAGE2_CHOOSE_IS25LP080
|
#elif PICO_BOOT_STAGE2_CHOOSE_IS25LP080
|
||||||
|
|
@ -26,7 +29,7 @@
|
||||||
#endif
|
#endif
|
||||||
#define _BOOT_STAGE2_SELECTED
|
#define _BOOT_STAGE2_SELECTED
|
||||||
#endif
|
#endif
|
||||||
// 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
|
// 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
|
||||||
#ifndef PICO_BOOT_STAGE2_CHOOSE_W25Q080
|
#ifndef PICO_BOOT_STAGE2_CHOOSE_W25Q080
|
||||||
#define PICO_BOOT_STAGE2_CHOOSE_W25Q080 0
|
#define PICO_BOOT_STAGE2_CHOOSE_W25Q080 0
|
||||||
#elif PICO_BOOT_STAGE2_CHOOSE_W25Q080
|
#elif PICO_BOOT_STAGE2_CHOOSE_W25Q080
|
||||||
|
|
@ -35,7 +38,7 @@
|
||||||
#endif
|
#endif
|
||||||
#define _BOOT_STAGE2_SELECTED
|
#define _BOOT_STAGE2_SELECTED
|
||||||
#endif
|
#endif
|
||||||
// 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
|
// 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
|
||||||
#ifndef PICO_BOOT_STAGE2_CHOOSE_W25X10CL
|
#ifndef PICO_BOOT_STAGE2_CHOOSE_W25X10CL
|
||||||
#define PICO_BOOT_STAGE2_CHOOSE_W25X10CL 0
|
#define PICO_BOOT_STAGE2_CHOOSE_W25X10CL 0
|
||||||
#elif PICO_BOOT_STAGE2_CHOOSE_W25X10CL
|
#elif PICO_BOOT_STAGE2_CHOOSE_W25X10CL
|
||||||
|
|
@ -44,7 +47,7 @@
|
||||||
#endif
|
#endif
|
||||||
#define _BOOT_STAGE2_SELECTED
|
#define _BOOT_STAGE2_SELECTED
|
||||||
#endif
|
#endif
|
||||||
// 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
|
// 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
|
||||||
#ifndef PICO_BOOT_STAGE2_CHOOSE_AT25SF128A
|
#ifndef PICO_BOOT_STAGE2_CHOOSE_AT25SF128A
|
||||||
#define PICO_BOOT_STAGE2_CHOOSE_AT25SF128A 0
|
#define PICO_BOOT_STAGE2_CHOOSE_AT25SF128A 0
|
||||||
#elif PICO_BOOT_STAGE2_CHOOSE_AT25SF128A
|
#elif PICO_BOOT_STAGE2_CHOOSE_AT25SF128A
|
||||||
|
|
@ -54,7 +57,7 @@
|
||||||
#define _BOOT_STAGE2_SELECTED
|
#define _BOOT_STAGE2_SELECTED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// 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
|
// 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
|
||||||
#if defined(PICO_BOOT_STAGE2_CHOOSE_GENERIC_03H) && PICO_BOOT_STAGE2_CHOOSE_GENERIC_03H
|
#if defined(PICO_BOOT_STAGE2_CHOOSE_GENERIC_03H) && PICO_BOOT_STAGE2_CHOOSE_GENERIC_03H
|
||||||
#ifdef _BOOT_STAGE2_SELECTED
|
#ifdef _BOOT_STAGE2_SELECTED
|
||||||
#error multiple boot stage 2 options chosen
|
#error multiple boot stage 2 options chosen
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# PICO_CMAKE_CONFIG: PICO_BTSTACK_PATH, Path to an alternative version of btstack overriding the version in pico-sdk/lib/btstack. Can be passed to cmake or set in your environment, type=string, group=pico_btstack
|
# PICO_CMAKE_CONFIG: PICO_BTSTACK_PATH, Path to BTstack. Can be passed to CMake or set in your environment if you do not wish to use the version included with the SDK, type=string, default=<PICO_SDK_PATH>/lib/btstack, group=pico_btstack
|
||||||
if (DEFINED ENV{PICO_BTSTACK_PATH} AND (NOT PICO_BTSTACK_PATH))
|
if (DEFINED ENV{PICO_BTSTACK_PATH} AND (NOT PICO_BTSTACK_PATH))
|
||||||
set(PICO_BTSTACK_PATH $ENV{PICO_BTSTACK_PATH})
|
set(PICO_BTSTACK_PATH $ENV{PICO_BTSTACK_PATH})
|
||||||
message("Using PICO_BTSTACK_PATH from environment ('${PICO_BTSTACK_PATH}')")
|
message("Using PICO_BTSTACK_PATH from environment ('${PICO_BTSTACK_PATH}')")
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@ if (NOT TARGET pico_clib_interface)
|
||||||
pico_mirrored_target_link_libraries(pico_llvm_libc_interface INTERFACE pico_stdio)
|
pico_mirrored_target_link_libraries(pico_llvm_libc_interface INTERFACE pico_stdio)
|
||||||
|
|
||||||
if (NOT PICO_CLIB)
|
if (NOT PICO_CLIB)
|
||||||
|
# PICO_CMAKE_CONFIG: PICO_CLIB, The C library to use e.g. newlib/picolibc/llvm_libc, type=string, default=based on PICO_COMPILER, group=build, docref=cmake-toolchain-config
|
||||||
set(PICO_CLIB newlib)
|
set(PICO_CLIB newlib)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# PICO_CMAKE_CONFIG: PICO_CYW43_DRIVER_PATH, Path to an alternative version of cyw43-driver overriding the version in pico-sdk/lib/cyw43-driver, type=string, group=pico_cyw43_driver
|
# PICO_CMAKE_CONFIG: PICO_CYW43_DRIVER_PATH, Path to cyw43-driver. Can be passed to CMake or set in your environment if you do not wish to use the version included with the SDK, type=string, default=<PICO_SDK_PATH>/lib/cyw43-driver, group=pico_cyw43_driver
|
||||||
if (DEFINED ENV{PICO_CYW43_DRIVER_PATH} AND (NOT PICO_CYW43_DRIVER_PATH))
|
if (DEFINED ENV{PICO_CYW43_DRIVER_PATH} AND (NOT PICO_CYW43_DRIVER_PATH))
|
||||||
set(PICO_CYW43_DRIVER_PATH $ENV{PICO_CYW43_DRIVER_PATH})
|
set(PICO_CYW43_DRIVER_PATH $ENV{PICO_CYW43_DRIVER_PATH})
|
||||||
message("Using PICO_CYW43_DRIVER_PATH from environment ('${PICO_CYW43_DRIVER_PATH}')")
|
message("Using PICO_CYW43_DRIVER_PATH from environment ('${PICO_CYW43_DRIVER_PATH}')")
|
||||||
|
|
|
||||||
|
|
@ -149,6 +149,8 @@ extern "C" {
|
||||||
* __addsf3, __subsf3, __mulsf3
|
* __addsf3, __subsf3, __mulsf3
|
||||||
* \endif
|
* \endif
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// PICO_CONFIG: PICO_FLOAT_IN_RAM, Force placement of SDK provided single-precision floating point into RAM, type=bool, default=0, group=pico_float
|
||||||
#if !defined(__riscv) || PICO_COMBINED_DOCS
|
#if !defined(__riscv) || PICO_COMBINED_DOCS
|
||||||
|
|
||||||
#if PICO_COMBINED_DOCS || !LIB_PICO_FLOAT_COMPILER
|
#if PICO_COMBINED_DOCS || !LIB_PICO_FLOAT_COMPILER
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# PICO_CMAKE_CONFIG: PICO_LWIP_PATH, Path to an alternative version of lwip overriding the version in pico-sdk/lib/lwip. Can be passed to cmake or set in your environment, type=string, group=pico_lwip
|
# PICO_CMAKE_CONFIG: PICO_LWIP_PATH, Path to lwIP. Can be passed to CMake or set in your environment if you do not wish to use the version included with the SDK, type=string, default=<PICO_SDK_PATH>/lib/lwip, group=pico_lwip
|
||||||
if (DEFINED ENV{PICO_LWIP_PATH} AND (NOT PICO_LWIP_PATH))
|
if (DEFINED ENV{PICO_LWIP_PATH} AND (NOT PICO_LWIP_PATH))
|
||||||
set(PICO_LWIP_PATH $ENV{PICO_LWIP_PATH})
|
set(PICO_LWIP_PATH $ENV{PICO_LWIP_PATH})
|
||||||
message("Using PICO_LWIP_PATH from environment ('${PICO_LWIP_PATH}')")
|
message("Using PICO_LWIP_PATH from environment ('${PICO_LWIP_PATH}')")
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# PICO_CMAKE_CONFIG: PICO_MBEDTLS_PATH, Path to an alternative version of mbedtls overriding the version in pico-sdk/lib/mbedtls. Can be passed to cmake or set in your environment, type=string, group=pico_mbedtls
|
# PICO_CMAKE_CONFIG: PICO_MBEDTLS_PATH, Path to Mbed TLS. Can be passed to CMake or set in your environment if you do not wish to use the version included with the SDK, type=string, default=<PICO_SDK_PATH>/lib/mbedtls, group=pico_mbedtls
|
||||||
if (DEFINED ENV{PICO_MBEDTLS_PATH} AND (NOT PICO_MBEDTLS_PATH))
|
if (DEFINED ENV{PICO_MBEDTLS_PATH} AND (NOT PICO_MBEDTLS_PATH))
|
||||||
set(PICO_MBEDTLS_PATH $ENV{PICO_MBEDTLS_PATH})
|
set(PICO_MBEDTLS_PATH $ENV{PICO_MBEDTLS_PATH})
|
||||||
message("Using PICO_MBEDTLS_PATH from environment ('${PICO_MBEDTLS_PATH}')")
|
message("Using PICO_MBEDTLS_PATH from environment ('${PICO_MBEDTLS_PATH}')")
|
||||||
|
|
|
||||||
|
|
@ -138,7 +138,7 @@
|
||||||
#define PICO_STDIO_USB_RESET_RESET_TO_FLASH_DELAY_MS 100
|
#define PICO_STDIO_USB_RESET_RESET_TO_FLASH_DELAY_MS 100
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// PICO_CONFIG: PICO_STDIO_USB_USE_DEFAULT_DESCRIPTORS, Defines the default USB descriptors needed for USB communication, type=bool, default=1 if the application is not using tinyUSB directly, group=pico_stdio_usb
|
// PICO_CONFIG: PICO_STDIO_USB_USE_DEFAULT_DESCRIPTORS, Whether `pico_stdio_usb` provides the USB descriptors needed for USB communication, type=bool, default=1 if the application is not using tinyUSB directly, group=pico_stdio_usb
|
||||||
#ifndef PICO_STDIO_USB_USE_DEFAULT_DESCRIPTORS
|
#ifndef PICO_STDIO_USB_USE_DEFAULT_DESCRIPTORS
|
||||||
#if !LIB_TINYUSB_HOST && !LIB_TINYUSB_DEVICE
|
#if !LIB_TINYUSB_HOST && !LIB_TINYUSB_DEVICE
|
||||||
#define PICO_STDIO_USB_USE_DEFAULT_DESCRIPTORS 1
|
#define PICO_STDIO_USB_USE_DEFAULT_DESCRIPTORS 1
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# PICO_CMAKE_CONFIG: PICO_TINYUSB_PATH, Path to an alternative version of tinyusb overriding the version in pico-sdk/lib/tinyusb. Can be passed to cmake or set in your environment, type=string, group=tinyusb_device
|
# PICO_CMAKE_CONFIG: PICO_TINYUSB_PATH, Path to TinyUSB. Can be passed to CMake or set in your environment if you do not wish to use the version included with the SDK, type=string, default=<PICO_SDK_PATH>/lib/tinyusb, group=tinyusb_device
|
||||||
if (DEFINED ENV{PICO_TINYUSB_PATH} AND (NOT PICO_TINYUSB_PATH))
|
if (DEFINED ENV{PICO_TINYUSB_PATH} AND (NOT PICO_TINYUSB_PATH))
|
||||||
set(PICO_TINYUSB_PATH $ENV{PICO_TINYUSB_PATH})
|
set(PICO_TINYUSB_PATH $ENV{PICO_TINYUSB_PATH})
|
||||||
message("Using PICO_TINYUSB_PATH from environment ('${PICO_TINYUSB_PATH}')")
|
message("Using PICO_TINYUSB_PATH from environment ('${PICO_TINYUSB_PATH}')")
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,7 @@ for dirpath, dirnames, filenames in os.walk(scandir):
|
||||||
# allow commas to appear inside brackets by converting them to and from NULL chars
|
# allow commas to appear inside brackets by converting them to and from NULL chars
|
||||||
_attrs = re.sub(r'(\(.+\))', lambda m: m.group(1).replace(',', '\0'), _attrs)
|
_attrs = re.sub(r'(\(.+\))', lambda m: m.group(1).replace(',', '\0'), _attrs)
|
||||||
|
|
||||||
if '=' in config_description:
|
if '=' in config_description and not '==' in config_description:
|
||||||
errors.append(Exception("For {} at {}:{} the description was set to '{}' - has the description field been omitted?".format(config_name, file_path, linenum, config_description)))
|
errors.append(Exception("For {} at {}:{} the description was set to '{}' - has the description field been omitted?".format(config_name, file_path, linenum, config_description)))
|
||||||
all_descriptions = chips_all_descriptions[applicable]
|
all_descriptions = chips_all_descriptions[applicable]
|
||||||
if config_description in all_descriptions:
|
if config_description in all_descriptions:
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ BASE_CMAKE_CONFIG_RE = re.compile(r'\b{}\b'.format(BASE_CMAKE_CONFIG_NAME))
|
||||||
BASE_BUILD_DEFINE_NAME = 'PICO_BUILD_DEFINE'
|
BASE_BUILD_DEFINE_NAME = 'PICO_BUILD_DEFINE'
|
||||||
BASE_BUILD_DEFINE_RE = re.compile(r'\b{}\b'.format(BASE_BUILD_DEFINE_NAME))
|
BASE_BUILD_DEFINE_RE = re.compile(r'\b{}\b'.format(BASE_BUILD_DEFINE_NAME))
|
||||||
|
|
||||||
CMAKE_CONFIG_RE = re.compile(r'#\s+{}:\s+(\w+),\s+([^,]+)(?:,\s+(.*))?$'.format(BASE_CMAKE_CONFIG_NAME))
|
CMAKE_CONFIG_RE = re.compile(r'#\s+{}:\s+([\w-]+),\s+([^,]+)(?:,\s+(.*))?$'.format(BASE_CMAKE_CONFIG_NAME))
|
||||||
|
|
||||||
PROPERTY_TYPE = 'type'
|
PROPERTY_TYPE = 'type'
|
||||||
PROPERTY_DEFAULT = 'default'
|
PROPERTY_DEFAULT = 'default'
|
||||||
|
|
@ -165,7 +165,7 @@ for dirpath, dirnames, filenames in os.walk(scandir):
|
||||||
# allow commas to appear inside brackets by converting them to and from NULL chars
|
# allow commas to appear inside brackets by converting them to and from NULL chars
|
||||||
_attrs = re.sub(r'(\(.+\))', lambda m: m.group(1).replace(',', '\0'), _attrs)
|
_attrs = re.sub(r'(\(.+\))', lambda m: m.group(1).replace(',', '\0'), _attrs)
|
||||||
|
|
||||||
if '=' in config_description:
|
if '=' in config_description and not '==' in config_description:
|
||||||
errors.append(Exception("For {} at {}:{} the description was set to '{}' - has the description field been omitted?".format(config_name, file_path, linenum, config_description)))
|
errors.append(Exception("For {} at {}:{} the description was set to '{}' - has the description field been omitted?".format(config_name, file_path, linenum, config_description)))
|
||||||
all_descriptions = chips_all_descriptions[applicable]
|
all_descriptions = chips_all_descriptions[applicable]
|
||||||
if config_description in all_descriptions:
|
if config_description in all_descriptions:
|
||||||
|
|
|
||||||
|
|
@ -211,7 +211,7 @@ for dirpath, dirnames, filenames in os.walk(scandir):
|
||||||
# allow commas to appear inside brackets by converting them to and from NULL chars
|
# allow commas to appear inside brackets by converting them to and from NULL chars
|
||||||
_attrs = re.sub(r'(\(.+\))', lambda m: m.group(1).replace(',', '\0'), _attrs)
|
_attrs = re.sub(r'(\(.+\))', lambda m: m.group(1).replace(',', '\0'), _attrs)
|
||||||
|
|
||||||
if '=' in config_description:
|
if '=' in config_description and not '==' in config_description:
|
||||||
errors.append(Exception("For {} at {}:{} the description was set to '{}' - has the description field been omitted?".format(config_name, file_path, linenum, config_description)))
|
errors.append(Exception("For {} at {}:{} the description was set to '{}' - has the description field been omitted?".format(config_name, file_path, linenum, config_description)))
|
||||||
all_descriptions = chips_all_descriptions[applicable]
|
all_descriptions = chips_all_descriptions[applicable]
|
||||||
if config_description in all_descriptions:
|
if config_description in all_descriptions:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue