2018-08-01 12:01:00 -08:00
|
|
|
# Kconfig - Modem configuration options
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2018 Foundries.io
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig MODEM
|
|
|
|
bool "Modem Drivers"
|
|
|
|
help
|
|
|
|
Enable config options for modem drivers.
|
|
|
|
|
|
|
|
if MODEM
|
|
|
|
|
2019-02-14 10:21:27 +01:00
|
|
|
module = MODEM
|
|
|
|
module-str = modem
|
|
|
|
source "subsys/logging/Kconfig.template.log_config"
|
|
|
|
|
2018-08-01 12:01:00 -08:00
|
|
|
config MODEM_RECEIVER
|
|
|
|
bool "Enable modem receiver helper driver"
|
2019-01-25 18:23:20 +01:00
|
|
|
depends on SERIAL_SUPPORT_INTERRUPT
|
|
|
|
select UART_INTERRUPT_DRIVEN
|
2019-02-13 22:48:46 +01:00
|
|
|
select RING_BUFFER
|
2018-08-01 12:01:00 -08:00
|
|
|
help
|
|
|
|
This driver allows modem drivers to communicate over UART with custom
|
|
|
|
defined protocols. Driver doesn't inspect received data and all
|
|
|
|
aspects of received protocol data are handled by application via
|
|
|
|
work method provided. This driver differs from the pipe UART driver
|
|
|
|
in that callbacks are executed in a different work queue and data is
|
|
|
|
passed around in k_pipe structures.
|
|
|
|
|
|
|
|
config MODEM_RECEIVER_MAX_CONTEXTS
|
|
|
|
int "Maximum number of modem receiver contexts"
|
|
|
|
depends on MODEM_RECEIVER
|
|
|
|
range 1 10
|
|
|
|
default 1
|
|
|
|
help
|
|
|
|
Maximum number of modem receiver contexts to handle. For most
|
|
|
|
purposes this should stay at 1.
|
|
|
|
|
2019-08-07 08:01:00 -07:00
|
|
|
config MODEM_CONTEXT
|
|
|
|
bool "Modem context helper driver [EXPERIMENTAL]"
|
|
|
|
help
|
|
|
|
This driver allows modem drivers to communicate with an interface
|
|
|
|
using custom defined protocols. Driver doesn't inspect received data
|
|
|
|
and all aspects of received protocol data are handled by application
|
|
|
|
work method provided. This driver combines abstractions for:
|
|
|
|
modem interface, command handler, pin config and socket handling each
|
|
|
|
of which will need to be configured.
|
|
|
|
|
|
|
|
if MODEM_CONTEXT
|
|
|
|
|
|
|
|
config MODEM_CONTEXT_MAX_NUM
|
|
|
|
int "Maximum number of modem contexts"
|
|
|
|
default 1
|
|
|
|
help
|
|
|
|
Maximum number of modem contexts to handle. For most
|
|
|
|
purposes this should stay at 1.
|
|
|
|
|
|
|
|
config MODEM_CONTEXT_VERBOSE_DEBUG
|
|
|
|
bool "Verbose debug output in the modem context"
|
|
|
|
help
|
|
|
|
Enabling this setting will turn on VERY heavy debugging from the
|
|
|
|
modem context helper. Do NOT leave on for production.
|
|
|
|
|
2019-08-07 08:02:00 -07:00
|
|
|
config MODEM_IFACE_UART
|
|
|
|
bool "UART-based modem interface"
|
|
|
|
depends on SERIAL_SUPPORT_INTERRUPT
|
|
|
|
select UART_INTERRUPT_DRIVEN
|
|
|
|
select RING_BUFFER
|
|
|
|
help
|
|
|
|
To configure this layer for use, create a modem_iface_uart_data
|
|
|
|
object and pass it's reference to modem_iface_uart_init()
|
|
|
|
along with the modem_iface reference from your modem_context object
|
|
|
|
and the UART device name.
|
|
|
|
|
2019-08-07 08:01:00 -07:00
|
|
|
endif # MODEM_CONTEXT
|
|
|
|
|
2018-08-01 12:03:00 -08:00
|
|
|
config MODEM_SHELL
|
|
|
|
bool "Enable modem shell utilities"
|
2018-10-19 15:15:44 -07:00
|
|
|
select SHELL
|
2018-08-01 12:03:00 -08:00
|
|
|
help
|
|
|
|
Activate shell module that provides modem utilities like
|
|
|
|
sending a command to the modem UART.
|
|
|
|
|
2019-05-17 10:14:00 -07:00
|
|
|
source "drivers/modem/Kconfig.ublox-sara-r4"
|
2019-02-14 10:21:27 +01:00
|
|
|
source "drivers/modem/Kconfig.wncm14a2a"
|
2018-08-01 12:02:00 -08:00
|
|
|
|
2018-08-01 12:01:00 -08:00
|
|
|
endif # MODEM
|