# Copyright (c) 2021 Andreas Anderberg
# Copyright (c) 2022-2023 Rob Meades
# Copyright (c) 2023 Sarah Renkhoff
# Copyright (c) 2024 TiaC Systems
# SPDX-License-Identifier: Apache-2.0

config ZEPHYR_UBXLIB_MODULE
	bool

config UBXLIB
	bool "u-blox ubxlib support"
	default n
	help
	  Enable ubxlib for use with u-blox modules

if UBXLIB

config UBXLIB_CELL
	bool "Cellular support"
	default n
	help
	  This will enable cell API.

config UBXLIB_GNSS
	bool "GNSS support"
	default n
	help
	  This will enable GNSS API.

config UBXLIB_GEODESIC
	bool "Enable geodesic library for geofence support"
	default n
	help
	  This will enable geofence support.

menuconfig UBXLIB_SHORTRANGE
	bool "Short range support"
	default n
	help
	  This will enable BLE and Wifi API.

if UBXLIB_SHORTRANGE

config UBXLIB_OPEN_CPU_BLE
	bool "Enable ubxlib OpenCPU BLE components"
	default n
	depends on BT
	depends on BT_PERIPHERAL
	depends on BT_CENTRAL
	select BT_GATT_DYNAMIC_DB
	select BT_GATT_CLIENT
	help
	  This will enable BLE SPS

menuconfig UBXLIB_EDM_STREAM_DEBUG
	bool "Enable logging of EDM stream events"
	default n

if UBXLIB_EDM_STREAM_DEBUG

config UBXLIB_EDM_STREAM_DEBUG_COLOR
	bool "Enable ANSI color coding for EDM debug"
	default y

config UBXLIB_EDM_STREAM_DEBUG_DUMP_DATA
	bool "Dump EDM data"
	default n

endif # UBXLIB_EDM_STREAM_DEBUG

endif # UBXLIB_SHORTRANGE

config UBXLIB_LOGGING
	bool "Enable ubxlib logging"
	default n
	help
	  The self contained ubxlib logging is only useful for
	  development and a simple tool for dumping datagram
	  content and internal state changes.

	  Note that the ubxlib logging is a complete standalone
	  implementation based on simple printf() wrapper and
	  has nothing to do with the Zephyr logging system!

config UBXLIB_TEST
	bool "Compile the ubxlib tests"
	select TEST
	select IRQ_OFFLOAD
	select CPP
	default n
	help
	  The self contained ubxlib tests are only useful for
	  development and depends on some special OS features,
	  such like C++ support for the Unity test framework and
	  the IRQ Offload to be able to test semaphore from ISR.

	  Currently this option is featureless. The ubxlib tests
	  are not enabled for Zephyr.

endif # UBXLIB
