CONFIG_PRINTK=y
CONFIG_SHELL=y
#CONFIG_SHELL_MINIMAL=y
CONFIG_SHELL_DYNAMIC_CMDS=n
CONFIG_USE_SEGGER_RTT=y
CONFIG_SHELL_BACKEND_RTT=y
CONFIG_SHELL_PROMPT_RTT="nova2>"
CONFIG_SHELL_STACK_SIZE=2048
CONFIG_SHELL_BACKEND_SERIAL=n
CONFIG_SHELL_ECHO_STATUS=n
CONFIG_SHELL_TAB=y


CONFIG_RTT_CONSOLE=y
CONFIG_UART_CONSOLE=n

CONFIG_CONSOLE=y
CONFIG_LOG=y
#CONFIG_LOG2_MODE_DEFERRED=y
#CONFIG_LOG_RUNTIME_FILTERING=y
#CONFIG_LOG_BUFFER_SIZE=2048
#CONFIG_LOG_PROCESS_THREAD_STACK_SIZE=2048
CONFIG_LOG_PRINTK=y
#CONFIG_LOG_PROCESS_TRIGGER_THRESHOLD=0
##CONFIG_COVERAGE=n
#CONFIG_LOG_SPEED=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_LOG_BACKEND_UART=n
#CONFIG_LOG_PROCESS_THREAD=y
CONFIG_LOG_BACKEND_RTT_BUFFER=2

# FOllowing block is Zephyr 3.0 style
#CONFIG_TRACING=y
#CONFIG_TRACING_OBJECT_TRACKING=y
#CONFIG_PERCEPIO_TRACERECORDER=y

#CONFIG_PERCEPIO_TRC_CFG_CTRL_TASK_DELAY=200
#CONFIG_PERCEPIO_TRC_CFG_STREAM_PORT_RTT=y
##CONFIG_PERCEPIO_TRC_CFG_START_MODE_START_AWAIT_HOST=y
#CONFIG_PERCEPIO_TRC_START_MODE_START_FROM_HOST=y
##1 #CONFIG_PERCEPIO_SEGGER_RTT_MODE_BLOCK_IF_FIFO_FULL=y
#CONFIG_PERCEPIO_TRC_CFG_STREAM_PORT_RTT_MODE_NO_BLOCK_SKIP=y
#CONFIG_PERCEPIO_TRC_CFG_CTRL_TASK_STACK_SIZE=4096

#CONFIG_PERCEPIO_TRC_CFG_STREAM_PORT_RTT_UP_BUFFER_INDEX=1
#CONFIG_PERCEPIO_TRC_CFG_STREAM_PORT_RTT_DOWN_BUFFER_INDEX=1

#following is old style
CONFIG_TRACING=y
CONFIG_PERCEPIO_TRACERECORDER=y
CONFIG_PERCEPIO_TRC_RECORDER_MODE_STREAMING=y
CONFIG_PERCEPIO_RECORDER_CFG_CTRL_TASK_DELAY=200
CONFIG_PERCEPIO_RECORDER_TRC_RECORDER_STREAM_PORT_RTT=y
#CONFIG_PERCEPIO_RECORDER_CFG_START_MODE_START_AWAIT_HOST=y
CONFIG_PERCEPIO_RECORDER_CFG_START_MODE_INIT=y
#CONFIG_PERCEPIO_RECORDER_SEGGER_RTT_MODE_BLOCK_IF_FIFO_FULL=y
CONFIG_PERCEPIO_RECORDER_SEGGER_RTT_MODE_NO_BLOCK_SKIP=y
CONFIG_PERCEPIO_RECORDER_CFG_CTRL_TASK_STACK_SIZE=4096

CONFIG_THREAD_MONITOR=y
CONFIG_INIT_STACKS=y
CONFIG_BOOT_BANNER=n
CONFIG_THREAD_NAME=y
#CONFIG_CBPRINTF_NANO=y
CONFIG_CBPRINTF_COMPLETE=y


#CONFIG_SIZE_OPTIMIZATIONS=y
CONFIG_DEBUG_OPTIMIZATIONS=y
CONFIG_DEBUG_THREAD_INFO=y
CONFIG_DEBUG_INFO=y

CONFIG_I2C=y
CONFIG_BQ27425=y

# Incresed stack due to settings API usage
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048


CONFIG_BT=y
CONFIG_BT_DEBUG_LOG=y
CONFIG_BT_SMP=y
CONFIG_BT_SIGNING=y
CONFIG_BT_PERIPHERAL=y

CONFIG_BT_BONDABLE=y
CONFIG_BT_BONDING_REQUIRED=y
CONFIG_BT_FIXED_PASSKEY=y
#CONFIG_BT_FILTER_ACCEPT_LIST is zephyr 2.7.99 new style
CONFIG_BT_WHITELIST=y
#CONFIG_BT_FILTER_ACCEPT_LIST=y

CONFIG_BT_DEBUG_LOG=y

# Device Information Service
CONFIG_BT_DIS=y
CONFIG_BT_DIS_FW_REV=y
CONFIG_BT_DIS_HW_REV=y
CONFIG_BT_DIS_SW_REV=y
CONFIG_BT_DIS_MANUF="Incus Performance"
CONFIG_BT_DIS_MODEL="Nova 2"
CONFIG_BT_DIS_SERIAL_NUMBER=y
#CONFIG_BT_DIS_SETTINGS=y

# Enable the NUS service
CONFIG_BT_NUS=y

CONFIG_BT_ATT_PREPARE_COUNT=5
CONFIG_BT_BAS=y
CONFIG_BT_PRIVACY=y
CONFIG_BT_TINYCRYPT_ECC=y
CONFIG_BT_DEVICE_NAME="Nova2"
CONFIG_BT_DEVICE_APPEARANCE=833
CONFIG_BT_DEVICE_NAME_DYNAMIC=y
CONFIG_BT_DEVICE_NAME_MAX=65

CONFIG_BT_KEYS_OVERWRITE_OLDEST=y
CONFIG_BT_SETTINGS=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_NVS=y
CONFIG_SETTINGS=y

CONFIG_ASSERT=y

#stuff added for ubxlib

CONFIG_MINIMAL_LIBC=y
# This is the memory used by the porting layer
CONFIG_HEAP_MEM_POOL_SIZE=131072
CONFIG_USERSPACE=y
CONFIG_NET_BUF_USER_DATA_SIZE=4

CONFIG_MINIMAL_LIBC_MALLOC=n

CONFIG_UART_INTERRUPT_DRIVEN=y

#To get uPortTaskStackMinFree() working
CONFIG_INIT_STACKS=y
CONFIG_THREAD_STACK_INFO=y
CONFIG_THREAD_NAME=y

#Add mbedTLS cryptograpic functions required for u-blox
# SaaS Chip to Chip encryption
CONFIG_MBEDTLS=y
CONFIG_MBEDTLS_BUILTIN=y
# This one for AES CBC 128
CONFIG_MBEDTLS_CIPHER_AES_ENABLED=y
# This one for SHA256
CONFIG_MBEDTLS_MAC_SHA256_ENABLED=y

# Add the basic Zephyr random number generator.
# IMPORTANT: this is only psuedo-random and is unlikely
# to be  sufficient for your needs, please check/test
# if you are intending to build production code.
#CONFIG_TEST_RANDOM_GENERATOR=y
#CONFIG_ENTROPY_DEVICE_RANDOM_GENERATOR=y


#Add support for FATFS and SPI based sdcard 
CONFIG_DISK_DRIVER_SDMMC=y
CONFIG_SPI=y
CONFIG_GPIO=y
CONFIG_DISK_ACCESS=y
CONFIG_FILE_SYSTEM=y
CONFIG_FAT_FILESYSTEM_ELM=y
CONFIG_FILE_SYSTEM_SHELL=y