[WIP][Do Not Review] Add Peer Manager #304
Draft
+12,171
−7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WIP add Peer Manager.
TODOs:
app_timer
inauth_status_tracker.c
andpeer_manager_handler.c
nrf_mtx_t
ingatt_cache_manager.c
nrf_ble_lesc.c
peer_data_storage.c
andpeer_manager_handler.c
nrf_atflags_t
inpeer_id.c
andpm_buffer.c
List of changes compared to nrf5 SDK:
Restructured and moved headers to dedicated folders
Applied
clang-format-15
to each fileUpdated all licenses
Replaced
ret_code_t
withuint32_t
Connection state flags are not present in
ble_conn_state
souse the Kconfig
BLE_CONN_STATE_USER_FLAG_COUNT
instead.Convert the type
ble_conn_state_user_flag_id_t
toint
.The configurable values defined in
peer_manager.packsc
havebeen converted to Kconfig options with a python script, and
replaced in the code.
Reformatted all Doxygen to fit NCS style
Removed nrf5 SDK logging in favor of Zephyr logging
DOS to unix line endings
Fix Checkpatch
Use Zephyr assert in
sdk_macros.h
All includes of headers that do not exist in Bare Metal have
been removed.
Changed
NRF_ERROR_RESOURCES
toNRF_ERROR_DATA_SIZE
.This is in order to use
NRF_ERROR_RESOURCES
in stead ofNRF_ERROR_STORAGE_FULL
.Changed
NRF_ERROR_STORAGE_FULL
toNRF_ERROR_RESOURCES
.Put central logic compilation behind Kconfig flag
Add some extra build dependencies
Update GATT Cache Manager by porting
nrf_mtx
logicUpdate
peer_id
andpm_buffer
to useatomic_t