#
# Copyright (c) 2018 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

source "Kconfig.zephyr"

menu "Apollo Project"

config BT_NUS_THREAD_STACK_SIZE
	int "Thread stack size"
	default 1024
	help
	  Stack size used in each of the two threads

config BT_NUS_UART_BUFFER_SIZE
	int "UART payload buffer element size"
	default 40
	help
	  Size of the payload buffer in each RX and TX FIFO element

config BT_NUS_SECURITY_ENABLED
	bool "Enable security"
	default y
	select BT_SMP
	help
	  "Enable BLE security for the UART service"

config BT_NUS_UART_RX_WAIT_TIME
	int "Timeout for UART RX complete event"
	default 50
	help
	  Wait for RX complete event time in milliseconds

config BT_NUS_UART_ASYNC_ADAPTER
	bool "Enable UART async adapter"
	select SERIAL_SUPPORT_ASYNC
	help
	  Enables asynchronous adapter for UART drives that supports only
	  IRQ interface.
	  
config PROXIMITY_OFF_SHOULDER_THRESHOLD
	int "proximity threshold value for off shoulder detection"
	default 240
	help
	  Thresold value which detects if device is on shoulder or off shoulder.
	  If proximity value is 255 then device is on shoulder.
	  Proximity value decrements if device goes away from object.
	  If object is far from 20 cm Proximity value is between 10 -25.

config ALS_OFF_SHOULDER_THRESHOLD
	int "Ambient light threshold value for off shoulder detection"
	default 2
	help
	  Thresold value which is used to detect if device is on shoulder or off shoulder.
	  If proximity value is greater than 40 then device is on shoulder.
	  ALS value increases if device gets more light.


endmenu
