Skip to content
Snippets Groups Projects
Verified Commit f2b3edec authored by rahix's avatar rahix
Browse files

build(ble): Disable tracing by default


Signed-off-by: default avatarRahix <rahix@rahix.de>
parent 60d1c78d
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ c_args = ['-mthumb', '-mcpu=cortex-m4', '-mfloat-abi=softfp', '-mfpu=fpv4-s ...@@ -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'] 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] [host_machine]
system = 'none' system = 'none'
......
...@@ -414,22 +414,40 @@ sources = files( ...@@ -414,22 +414,40 @@ sources = files(
'link_layer/controller/sources/common/sch/sch_list.c', '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( lib = static_library(
'ble', 'ble',
sources, sources,
include_directories: includes, include_directories: includes,
dependencies: [periphdriver, libcordiophy], dependencies: [periphdriver, libcordiophy],
c_args: ['-w', c_args: [
'-DLHCI_ENABLE_VS=TRUE', '-w',
'-DBB_CLK_RATE_HZ=1600000', '-DLHCI_ENABLE_VS=TRUE',
'-DLCTR_CONN_NO_TIFS_REASSEMBLY=1', '-DBB_CLK_RATE_HZ=1600000',
'-DBB_ENABLE_INLINE_ENC_TX=1', '-DLCTR_CONN_NO_TIFS_REASSEMBLY=1',
'-DBB_ENABLE_INLINE_DEC_RX=1', '-DBB_ENABLE_INLINE_ENC_TX=1',
'-DFORCE_PMU_WAKEUP=1'] '-DBB_ENABLE_INLINE_DEC_RX=1',
'-DFORCE_PMU_WAKEUP=1',
] + ble_compileargs,
) )
ble = declare_dependency( ble = declare_dependency(
include_directories: includes, include_directories: includes,
link_with: lib, link_with: lib,
compile_args: ble_compileargs,
dependencies: [periphdriver, libcordiophy], dependencies: [periphdriver, libcordiophy],
) )
...@@ -5,3 +5,11 @@ option( ...@@ -5,3 +5,11 @@ option(
description: 'Whether to print debug messages on the serial console' description: 'Whether to print debug messages on the serial console'
) )
option(
'ble_trace',
type: 'boolean',
value: false,
description: 'Whether to enable WSF TRACE prints',
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment