zephyr/drivers/modem
Jukka Rissanen 4c1b0ab2a9 drivers: modem: gsm: Add context to DEVICE_INIT()
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>
2020-02-10 12:32:24 +02:00
..
CMakeLists.txt
gsm_ppp.c drivers: modem: gsm: Add context to DEVICE_INIT() 2020-02-10 12:32:24 +02:00
Kconfig
Kconfig.gsm
Kconfig.ublox-sara-r4 drivers: modem: sara-r4: support for network indication on SARA modems 2020-02-10 12:29:41 +02:00
Kconfig.wncm14a2a
modem_cmd_handler.c drivers: modem: cmd_handler: add return value to modem commands 2020-02-10 12:29:41 +02:00
modem_cmd_handler.h drivers: modem: cmd_handler: add return value to modem commands 2020-02-10 12:29:41 +02:00
modem_context.c
modem_context.h drivers: modem: Fix gpio compile errors with modem shell 2020-02-06 12:33:20 +02:00
modem_iface_uart.c
modem_iface_uart.h
modem_pin.c drivers: modem: Fix gpio compile errors with modem shell 2020-02-06 12:33:20 +02:00
modem_receiver.c
modem_receiver.h
modem_shell.c
modem_socket.c drivers: modem: socket: add is_connected field to modem_socket 2020-02-10 12:29:41 +02:00
modem_socket.h drivers: modem: socket: add is_connected field to modem_socket 2020-02-10 12:29:41 +02:00
ublox-sara-r4.c drivers: modem: sara-r4: use +USO[RF|RD] based on proto 2020-02-10 12:29:41 +02:00
wncm14a2a.c