Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to compile blackpill-f4* with SHIELD option, using meson #2056

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ option(
value: '0',
description: 'Alternative pinout for probe (only applicable to blackpill-f4*)'
)
option(
'shield',
type: 'combo',
choices: ['0', '1'],
value: '0',
description: 'Select that blackpill-f4* is used with a shield (only applicable to blackpill-f4*)'
)
option(
'trace_protocol',
type: 'combo',
Expand Down
5 changes: 5 additions & 0 deletions src/platforms/common/blackpill-f4/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ if blackpill_alternative_pinout != '0'
probe_blackpill_args += [f'-DALTERNATIVE_PINOUT=@blackpill_alternative_pinout@']
endif

blackpill_shield = get_option('shield')
if blackpill_shield != '0'
probe_blackpill_args += [f'-DSHIELD=@blackpill_shield@']
endif

if on_carrier_board
probe_blackpill_args += ['-DON_CARRIER_BOARD']
endif
Expand Down
Loading