Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
François Revol
firmware
Commits
f2b3edec
Verified
Commit
f2b3edec
authored
Aug 06, 2019
by
Rahix
Browse files
build(ble): Disable tracing by default
Signed-off-by:
Rahix
<
rahix@rahix.de
>
parent
60d1c78d
Changes
3
Hide whitespace changes
Inline
Side-by-side
card10-cross.ini
View file @
f2b3edec
...
...
@@ -8,7 +8,7 @@ c_args = ['-mthumb', '-mcpu=cortex-m4', '-mfloat-abi=softfp', '-mfpu=fpv4-s
c_link_args
=
['-mthumb', '-mcpu=cortex-m4', '-mfloat-abi=softfp', '-mfpu=fpv4-sp-d16', '-Wl,--start-group', '-lc', '-lnosys', '-Wl,--end-group', '--specs=nano.specs']
target_defs
=
['-DTARGET=32665', '-DTARGET_REV=0x4131', '-DBOARD_CARD10=1'
, '-DWSF_TRACE_ENABLED=TRUE', '-DWSF_ASSERT_ENABLED=TRUE', '-DWSF_MS_PER_TICK=1', '-DINIT_BROADCASTER', '-DINIT_PERIPHERAL', '-DINIT_ENCRYPTED'
]
target_defs
=
['-DTARGET=32665', '-DTARGET_REV=0x4131', '-DBOARD_CARD10=1']
[host_machine]
system
=
'none'
...
...
lib/sdk/Libraries/BTLE/meson.build
View file @
f2b3edec
...
...
@@ -414,22 +414,40 @@ sources = files(
'link_layer/controller/sources/common/sch/sch_list.c',
)
ble_compileargs = [
'-DWSF_ASSERT_ENABLED=TRUE',
'-DWSF_MS_PER_TICK=1',
'-DINIT_BROADCASTER',
'-DINIT_PERIPHERAL',
'-DINIT_ENCRYPTED',
]
if get_option('ble_trace')
ble_compileargs += [
'-DWSF_TRACE_ENABLED=TRUE',
]
endif
lib = static_library(
'ble',
sources,
include_directories: includes,
dependencies: [periphdriver, libcordiophy],
c_args: ['-w',
'-DLHCI_ENABLE_VS=TRUE',
'-DBB_CLK_RATE_HZ=1600000',
'-DLCTR_CONN_NO_TIFS_REASSEMBLY=1',
'-DBB_ENABLE_INLINE_ENC_TX=1',
'-DBB_ENABLE_INLINE_DEC_RX=1',
'-DFORCE_PMU_WAKEUP=1']
c_args: [
'-w',
'-DLHCI_ENABLE_VS=TRUE',
'-DBB_CLK_RATE_HZ=1600000',
'-DLCTR_CONN_NO_TIFS_REASSEMBLY=1',
'-DBB_ENABLE_INLINE_ENC_TX=1',
'-DBB_ENABLE_INLINE_DEC_RX=1',
'-DFORCE_PMU_WAKEUP=1',
] + ble_compileargs,
)
ble = declare_dependency(
include_directories: includes,
link_with: lib,
compile_args: ble_compileargs,
dependencies: [periphdriver, libcordiophy],
)
meson_options.txt
View file @
f2b3edec
...
...
@@ -5,3 +5,11 @@ option(
description: 'Whether to print debug messages on the serial console'
)
option(
'ble_trace',
type: 'boolean',
value: false,
description: 'Whether to enable WSF TRACE prints',
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment