Skip to content

Commit f4febdc

Browse files
Abbas Bracken Ziadpaul-szczepanek-arm
authored andcommitted
Add tracing to BLE GAP (#14117)
* Add traces to GapImpl.cpp * Add helpers and param logs * Update GapImpl.cpp * Move helpers to ble_trace_helpers.h * Add traces to whitelist setter & getter functions * Prepend parent dir. to ble_trace_helpers.h include line * Resolve portability issue by using PRI* macro in place of %lu * Add traces to PalGapImpl.cpp * Complete PAL GAP traces * Remove stray include * Make 'echo' traces in PAL configurable Some of the tr_info traces at the beginning of PAL functions are duplicates ('echoes') of those in GAP functions. This commit enables including/excluding of these traces in mbed_app.json by writing 1/0, respectively to the MBED_CONF_CORDIO_TRACE_PAL_ECHOES config macro. The default is to exclude 'echo' traces. * Add missing spaces in tr_info traces * Clean-up param log for set_extended_advertising_parameters * Remove "Failed: " from every tr_error trace * Apply changes from PalGapImpl.cpp review * Apply changes from GapImpl.cpp review * Use binary for channel map trace B0: ADVERTISING_CHANNEL_37 B1: ADVERTISING_CHANNEL_38 B2: ADVERTISING_CHANNEL_39 We're assuming that the user understands the above. This could be documented somewhere. * Replace more %lu w/PRIu32 * Add tr_info to terminateSync for user call * Make trace group for PAL traces BLDM * Remove [PAL] prefix from every PAL trace * Add trace to setPeripheralPrivacyConfiguration * Make set scan params tr_info dependent on selected PHY * Add trace to GAP events * Other GAP events required traces
1 parent 91d4b48 commit f4febdc

File tree

4 files changed

+1465
-8
lines changed

4 files changed

+1465
-8
lines changed

0 commit comments

Comments
 (0)