Skip to content
Permalink
Browse files

drivers: modem: ublox SARA convert to modem context

Let's convert the SARA modem to use the more generic modem context
layers so that we don't maintain a lot of what should be shared code.

This conversion includes:
- modem context as the helper umbrella
- uart modem interface layer
- generic command handler layer
- modem socket helper
- move from net_context offload API to socket offload API

Signed-off-by: Michael Scott <mike@foundries.io>
  • Loading branch information...
mike-scott authored and ioannisg committed Aug 7, 2019
1 parent f5c45c2 commit ebf6520d8713aae9809eb1ef6bee7211cf9b4caa
Showing with 731 additions and 1,341 deletions.
  1. +9 −1 drivers/modem/Kconfig.ublox-sara-r4
  2. +722 −1,340 drivers/modem/ublox-sara-r4.c
@@ -8,15 +8,23 @@

config MODEM_UBLOX_SARA_R4
bool "Enable u-blox SARA-R4 LTE-CatM1/NB-IoT modem driver"
select MODEM_RECEIVER
select MODEM_CONTEXT
select MODEM_CMD_HANDLER
select MODEM_IFACE_UART
select MODEM_SOCKET
select NET_OFFLOAD
select NET_SOCKETS_OFFLOAD
imply GPIO
help
Choose this setting to enable u-blox SARA-R4 LTE-CatM1/NB-IoT modem
driver.

if MODEM_UBLOX_SARA_R4

config MODEM_UBLOX_SARA_R4_NAME
string "Driver name"
default "MODEM_SARA"

config MODEM_UBLOX_SARA_R4_RX_STACK_SIZE
int "Stack size for the u-blox SARA-R4 modem driver RX thread"
default 1028

0 comments on commit ebf6520

Please sign in to comment.
You can’t perform that action at this time.