This PR adds the following modem modules to the subsys/modem
folder:
- chat: Light implementation of the Linux chat program, used to
send and receive text based commands statically created
scripts.
- cmux: Implementation of the CMUX protocol
- pipe: Thread-safe async data-in/data-out binding layer between
modem modules.
- ppp: Implementation of the PPP protocol, binding the Zephyr PPP
L2 stack with the data-in/data-out pipe.
These modules use the abstract pipes to communicate between each
other. To bind them with the hardware, the following backends
are provided:
- TTY: modem pipe <-> POSIX TTY file
- UART: modem pipe <-> UART, async and ISR APIs supported
The backends are used to abstract away the physical layer, UART,
TTY, IPC, I2C, SPI etc, to a modem modules friendly pipe.
Signed-off-by: Bjarki Arge Andreasen <baa@trackunit.com>
16 lines
405 B
CMake
16 lines
405 B
CMake
# Copyright (c) 2023 Trackunit Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
if(CONFIG_MODEM_MODULES)
|
|
|
|
zephyr_library()
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_MODEM_CHAT modem_chat.c)
|
|
zephyr_library_sources_ifdef(CONFIG_MODEM_CMUX modem_cmux.c)
|
|
zephyr_library_sources_ifdef(CONFIG_MODEM_PIPE modem_pipe.c)
|
|
zephyr_library_sources_ifdef(CONFIG_MODEM_PPP modem_ppp.c)
|
|
|
|
add_subdirectory(backends)
|
|
|
|
endif()
|