menuconfig DRIVERS_GPS
	bool "gps"
	default n
	---help---
		Enable support for gps

if DRIVERS_GPS
	config GPS_UBX
		bool "u-blox protocol support (UBX)"
		default y
		---help---
			Driver for u-blox GNSS receivers (M8, F9P, M10, X20, ...).

	config GPS_MTK
		bool "MediaTek protocol support (MTK)"
		default !BOARD_CONSTRAINED_FLASH
		---help---
			Driver for MediaTek GNSS receivers (custom binary protocol).

	config GPS_ASHTECH
		bool "Ashtech/Trimble protocol support"
		default !BOARD_CONSTRAINED_FLASH
		---help---
			Driver for Ashtech/Trimble GNSS receivers.

	config GPS_EMLIDREACH
		bool "Emlid Reach protocol support (ERB)"
		default !BOARD_CONSTRAINED_FLASH
		---help---
			Driver for Emlid Reach GNSS receivers (ERB protocol).

	config GPS_FEMTOMES
		bool "Femtomes protocol support"
		default !BOARD_CONSTRAINED_FLASH
		---help---
			Driver for Femtomes GNSS receivers.

	config GPS_NMEA
		bool "NMEA protocol support (incl. Unicore)"
		default !BOARD_CONSTRAINED_FLASH
		---help---
			Generic NMEA driver, including Unicore extensions.
			Never auto-detected: it must be selected explicitly via
			GPS_x_PROTOCOL or the -p command line option.

	config GPS_SPARTN
		bool "SPARTN correction framing (e.g. PointPerfect)"
		default n
		---help---
			Frame and inject SPARTN corrections (e.g. u-blox PointPerfect)
			from gps_inject_data alongside RTCM3.
			Enable on targets that receive a SPARTN correction service.
			Left off, the SPARTN framer is not built and the receiver only
			ever sees RTCM3, which is the common RTK setup.
	config GPS_UBX_SPAN
		bool "Support for UBX_MON_SPAN message handling"
		default n
		depends on GPS_UBX
		---help---
			Enables reading UBX_MON_SPAN messages from u-blox receivers.
endif # DRIVERS_GPS

menuconfig USER_GPS
	bool "gps running as userspace module"
	default y
	depends on BOARD_PROTECTED && DRIVERS_GPS
	---help---
		Put gps in userspace memory
