pico-sdk/tools
Graham Sanderson fed7188e52
Rework use of pico_cmake_set in board headers to make it slightly less magic/confusing (#2397)
* Rework use of pico_cmake_set in board headers to make it slightly less magic/confusing

- prefer "pico_cmake_set(var, value)" over "// pico_cmake_set var = value"
- prefer "pico_cmake_set_default(var, value)" over "// pico_cmake_set_default var = value"
- move these inside the header include guards as CLion complains

Note that the macros are defined in "pico.h" however that is not explicitly included by the board headers; this
will probably confuse some VS code syntax highligting, so lets see how it looks - i'd prefer to avoid having
to include a header just for this

* Update check_board_header.py with the new pico_cmake_set formats

* Add brackets back around `PICO_FLASH_SIZE_BYTES` settings

The python script checks for an exact match between the #define and the pico_cmake_set_default, so fails without the brackets

* Rename to pico_board_cmake_set and pico_board_cmake_set_default

* Fix support for old versions

---------

Co-authored-by: William Vinnicombe <william.vinnicombe@raspberrypi.com>
2025-04-14 08:50:25 -07:00
..
example_keys Throw a warning when using the example signing/encryption keys (#2352) 2025-03-22 18:22:37 -05:00
pioasm Adjust generated name to match pio_mov_status_type (#2324) 2025-03-18 13:39:38 -05:00
bazel_build.py Initial Pico/2 W Bazel support (#2049) 2024-11-21 16:58:02 -06:00
bazel_common.py [Bazel] Fix bazel build, add presubmit (#1973) 2024-10-12 17:41:43 -05:00
BUILD.bazel Expand bazel build to include configuration options and broader support. (#1731) 2024-06-13 09:50:04 -05:00
build_all_headers.py Fix tools/build_all_headers.py to cope with chip-specific headers (#2292) 2025-03-18 13:43:03 -05:00
check_all_board_headers.sh Boards header updates (#1724) 2024-06-21 14:26:45 -05:00
check_board_header.py Rework use of pico_cmake_set in board headers to make it slightly less magic/confusing (#2397) 2025-04-14 08:50:25 -07:00
check_configs.sh Fix various typos in CMake CONFIG lines. Also add a script that found some of these errors. (#907) 2022-08-02 07:28:37 -05:00
check_doxygen_groups.py Initial Release 2021-01-20 10:44:27 -06:00
check_source_files_in_bazel_build.py SDK 2.0.0 release 2024-08-08 08:54:38 -05:00
CMakeLists.txt Throw a warning when using the example signing/encryption keys (#2352) 2025-03-22 18:22:37 -05:00
compare_build_systems.py Update mbedtls, lwip and cyw43-driver (#2405) 2025-04-11 09:14:02 -07:00
copro_dis.py Add missing instruction to vestigial copro_dis.py (#2018) 2024-11-05 10:53:19 -06:00
extract_build_defines.py Fixes for/found by documentation generation (#2099) 2024-11-25 12:30:55 -06:00
extract_cmake_configs.py Fixes for/found by documentation generation (#2099) 2024-11-25 12:30:55 -06:00
extract_configs.py Fix bug in extract_configs.py (#2389) 2025-04-04 11:33:18 -05:00
Findpicotool.cmake Remove deprecated uses of FetchContent_Populate (#2169) 2025-01-20 13:45:51 -06:00
Findpioasm.cmake SDK 2.0.0 release 2024-08-08 08:54:38 -05:00
run_all_bazel_checks.py [Bazel] Fix bazel build, add presubmit (#1973) 2024-10-12 17:41:43 -05:00
uf2_aspect.bzl SDK 2.0.0 release 2024-08-08 08:54:38 -05:00