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:
@@ -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'))
|
||||
|
Reference in New Issue
Block a user