mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
Check for the misuse of '#define PICO_RP2350B' in board headers (#2290)
This commit is contained in:
parent
cc1ac399ed
commit
3751bc5f98
1 changed files with 2 additions and 0 deletions
|
|
@ -391,6 +391,8 @@ else:
|
||||||
chip = 'RP2350A'
|
chip = 'RP2350A'
|
||||||
else:
|
else:
|
||||||
chip = 'RP2350B'
|
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 not board_header.endswith("amethyst_fpga.h"):
|
||||||
if 'PICO_RP2350_A2_SUPPORTED' not in cmake_default_settings:
|
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'))
|
raise Exception("{} uses chip {} but is missing a pico_cmake_set_default {} comment".format(board_header, chip, 'PICO_RP2350_A2_SUPPORTED'))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue