mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-01 13:22:36 +00:00
Instead of using global static variable "gsm" everywhere, store the context when calling DEVICE_INIT(). Then in the device init function get the context from the device struct. This way it is possible to use the same functions for implementing two gsm modem instances. Currently this is not fully possible because the context is not passed via uart_pipe API and modem_cmd callbacks. So some future work would still be needed. In practice this commit does not change anything, it just makes it a little bit easier to have two instance of this modem which might be quite unlikely case. Anyway, the driver now follows the same style how some other drivers are done like Ethernet etc. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
gsm_ppp.c | ||
Kconfig | ||
Kconfig.gsm | ||
Kconfig.ublox-sara-r4 | ||
Kconfig.wncm14a2a | ||
modem_cmd_handler.c | ||
modem_cmd_handler.h | ||
modem_context.c | ||
modem_context.h | ||
modem_iface_uart.c | ||
modem_iface_uart.h | ||
modem_pin.c | ||
modem_receiver.c | ||
modem_receiver.h | ||
modem_shell.c | ||
modem_socket.c | ||
modem_socket.h | ||
ublox-sara-r4.c | ||
wncm14a2a.c |