Skip to content

Commit

Permalink
blackpill-f4/meson: add option to compile blackpill-f4* with SHIELD o…
Browse files Browse the repository at this point in the history
…ption, using meson
  • Loading branch information
lenvm committed Jan 17, 2025
1 parent 87cd7e2 commit 593b906
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
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

0 comments on commit 593b906

Please sign in to comment.