1
0
mirror of https://github.com/raspberrypi/pico-sdk.git synced 2025-08-07 17:02:52 +03:00

Check for the misuse of '#define PICO_RP2350B' in board headers (#2290)

This commit is contained in:
Andrew Scheller
2025-03-18 18:31:21 +00:00
committed by GitHub
parent cc1ac399ed
commit 3751bc5f98

View File

@@ -391,6 +391,8 @@ else:
chip = 'RP2350A'
else:
chip = 'RP2350B'
if 'PICO_RP2350B' in defines:
raise Exception("{} sets #define {} {} (should probably be #define {} {})".format(board_header, 'PICO_RP2350B', defines['PICO_RP2350B'].resolved_value, 'PICO_RP2350A', 1 - defines['PICO_RP2350B'].resolved_value))
if not board_header.endswith("amethyst_fpga.h"):
if 'PICO_RP2350_A2_SUPPORTED' not in cmake_default_settings:
raise Exception("{} uses chip {} but is missing a pico_cmake_set_default {} comment".format(board_header, chip, 'PICO_RP2350_A2_SUPPORTED'))