081b83531b
This changes HAS registration to be dynamic and let's the application set Hearing Aid Type and binaural features. Often, devices are flashed with generic firmware with some features stored post factory production, requiring the settings to be moved from compile time to run-time. This change will increase the RAM usage as the GATT service is moved from ROM to RAM. Signed-off-by: Lars Knudsen <larsgk@gmail.com> Co-author: Soren Engquist <soren@engquist.dk>
27 lines
582 B
CMake
27 lines
582 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
cmake_minimum_required(VERSION 3.20.0)
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
project(hap_ha)
|
|
|
|
target_sources(app PRIVATE
|
|
src/bap_unicast_sr.c
|
|
src/has_server.c
|
|
src/main.c
|
|
src/vcp_vol_renderer.c
|
|
)
|
|
|
|
target_sources_ifdef(CONFIG_HAP_HA_HEARING_AID_BINAURAL app PRIVATE
|
|
src/csip_set_member.c
|
|
)
|
|
|
|
target_sources_ifdef(CONFIG_BT_ASCS_ASE_SRC app PRIVATE
|
|
src/micp_mic_dev.c
|
|
)
|
|
|
|
target_sources_ifdef(CONFIG_BT_TBS_CLIENT app PRIVATE
|
|
src/ccp_call_ctrl.c
|
|
)
|
|
|
|
zephyr_library_include_directories(${ZEPHYR_BASE}/samples/bluetooth)
|