zephyr/samples/bluetooth/hap_ha/Kconfig
Lars Knudsen 081b83531b Bluetooth: has: Make HAS registration dynamic
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>
2022-12-20 17:04:45 +00:00

53 lines
969 B
Plaintext

#
# Copyright (c) 2022 Codecoup
#
# SPDX-License-Identifier: Apache-2.0
#
mainmenu "Bluetooth: Hearing Aid"
menu "Zephyr"
source "Kconfig.zephyr"
endmenu
menu "Hearing Aid"
config HAP_HA_SET_RANK
int "Device rank in set"
depends on BT_CSIP_SET_MEMBER
range 1 2
help
Rank of this device in set.
choice HAP_HA_HEARING_AID_TYPE_CHOICE
prompt "Hearing Aid Type selection"
help
Select the Hearing Aid Type to compile.
config HAP_HA_HEARING_AID_MONAURAL
bool "Monaural Hearing Aid"
config HAP_HA_HEARING_AID_BINAURAL
depends on BT_CSIP_SET_MEMBER
bool "Binaural Hearing Aid"
config HAP_HA_HEARING_AID_BANDED
bool "Banded Hearing Aid"
endchoice # HAP_HA_HEARING_AID_TYPE_CHOICE
choice HAP_HA_HEARING_AID_LOCATION
prompt "Hearing Aid Device Location"
help
Select the Hearing Aid Device location.
config HAP_HA_HEARING_AID_LEFT
bool "Left Ear"
config HAP_HA_HEARING_AID_RIGHT
bool "Right Ear"
endchoice # HAP_HA_HEARING_AID_LOCATION
endmenu