mirror of https://github.com/ARMmbed/mbed-os.git
Cellular: Fix mbed2-build of onboard-modems
parent
52ee61e1ae
commit
7578d5b174
|
@ -14,6 +14,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if MBED_CONF_NSAPI_PRESENT
|
||||||
|
|
||||||
#include "ONBOARD_UBLOX_PPP.h"
|
#include "ONBOARD_UBLOX_PPP.h"
|
||||||
#include "cellular/onboard_modem_api.h"
|
#include "cellular/onboard_modem_api.h"
|
||||||
#include "UARTSerial.h"
|
#include "UARTSerial.h"
|
||||||
|
@ -61,3 +63,5 @@ CellularDevice *CellularDevice::get_target_default_instance()
|
||||||
static ONBOARD_UBLOX_PPP device(&serial);
|
static ONBOARD_UBLOX_PPP device(&serial);
|
||||||
return &device;
|
return &device;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // MBED_CONF_NSAPI_PRESENT
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if MBED_CONF_NSAPI_PRESENT
|
||||||
|
|
||||||
#include "cellular/onboard_modem_api.h"
|
#include "cellular/onboard_modem_api.h"
|
||||||
#include "UARTSerial.h"
|
#include "UARTSerial.h"
|
||||||
#include "ONBOARD_TELIT_HE910.h"
|
#include "ONBOARD_TELIT_HE910.h"
|
||||||
|
@ -54,3 +56,5 @@ CellularDevice *CellularDevice::get_target_default_instance()
|
||||||
static ONBOARD_TELIT_HE910 device(&serial);
|
static ONBOARD_TELIT_HE910 device(&serial);
|
||||||
return &device;
|
return &device;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // MBED_CONF_NSAPI_PRESENT
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if MBED_CONF_NSAPI_PRESENT
|
||||||
|
|
||||||
#include "cellular/onboard_modem_api.h"
|
#include "cellular/onboard_modem_api.h"
|
||||||
#include "UARTSerial.h"
|
#include "UARTSerial.h"
|
||||||
#include "ONBOARD_TELIT_HE910.h"
|
#include "ONBOARD_TELIT_HE910.h"
|
||||||
|
@ -61,3 +63,5 @@ CellularDevice *CellularDevice::get_target_default_instance()
|
||||||
static ONBOARD_TELIT_HE910 device(&serial);
|
static ONBOARD_TELIT_HE910 device(&serial);
|
||||||
return &device;
|
return &device;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // MBED_CONF_NSAPI_PRESENT
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if MBED_CONF_NSAPI_PRESENT
|
||||||
|
|
||||||
#include "ONBOARD_UBLOX_AT.h"
|
#include "ONBOARD_UBLOX_AT.h"
|
||||||
#include "ONBOARD_UBLOX_PPP.h"
|
#include "ONBOARD_UBLOX_PPP.h"
|
||||||
#include "UARTSerial.h"
|
#include "UARTSerial.h"
|
||||||
|
@ -31,3 +33,5 @@ CellularDevice *CellularDevice::get_target_default_instance()
|
||||||
#endif
|
#endif
|
||||||
return &device;
|
return &device;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // MBED_CONF_NSAPI_PRESENT
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if MBED_CONF_NSAPI_PRESENT
|
||||||
|
|
||||||
#include "ONBOARD_UBLOX_AT.h"
|
#include "ONBOARD_UBLOX_AT.h"
|
||||||
#include "cellular/onboard_modem_api.h"
|
#include "cellular/onboard_modem_api.h"
|
||||||
|
|
||||||
|
@ -46,3 +48,5 @@ nsapi_error_t ONBOARD_UBLOX_AT::soft_power_off()
|
||||||
::onboard_modem_power_down();
|
::onboard_modem_power_down();
|
||||||
return NSAPI_ERROR_OK;
|
return NSAPI_ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // MBED_CONF_NSAPI_PRESENT
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if MBED_CONF_NSAPI_PRESENT
|
||||||
|
|
||||||
#include "ONBOARD_UBLOX_PPP.h"
|
#include "ONBOARD_UBLOX_PPP.h"
|
||||||
#include "cellular/onboard_modem_api.h"
|
#include "cellular/onboard_modem_api.h"
|
||||||
|
|
||||||
|
@ -46,3 +48,5 @@ nsapi_error_t ONBOARD_UBLOX_PPP::soft_power_off()
|
||||||
::onboard_modem_power_down();
|
::onboard_modem_power_down();
|
||||||
return NSAPI_ERROR_OK;
|
return NSAPI_ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // MBED_CONF_NSAPI_PRESENT
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if MBED_CONF_NSAPI_PRESENT
|
||||||
|
|
||||||
#include "ONBOARD_QUECTEL_BG96.h"
|
#include "ONBOARD_QUECTEL_BG96.h"
|
||||||
|
|
||||||
#include "cellular/onboard_modem_api.h"
|
#include "cellular/onboard_modem_api.h"
|
||||||
|
@ -55,3 +57,5 @@ CellularDevice *CellularDevice::get_target_default_instance()
|
||||||
static ONBOARD_QUECTEL_BG96 device(&serial);
|
static ONBOARD_QUECTEL_BG96 device(&serial);
|
||||||
return &device;
|
return &device;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // MBED_CONF_NSAPI_PRESENT
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if MBED_CONF_NSAPI_PRESENT
|
||||||
|
|
||||||
#include "ONBOARD_QUECTEL_BG96.h"
|
#include "ONBOARD_QUECTEL_BG96.h"
|
||||||
|
|
||||||
#include "cellular/onboard_modem_api.h"
|
#include "cellular/onboard_modem_api.h"
|
||||||
|
@ -55,3 +57,5 @@ CellularDevice *CellularDevice::get_target_default_instance()
|
||||||
static ONBOARD_QUECTEL_BG96 device(&serial);
|
static ONBOARD_QUECTEL_BG96 device(&serial);
|
||||||
return &device;
|
return &device;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // MBED_CONF_NSAPI_PRESENT
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if MBED_CONF_NSAPI_PRESENT
|
||||||
|
|
||||||
#include "ONBOARD_SARA4_PPP.h"
|
#include "ONBOARD_SARA4_PPP.h"
|
||||||
#include "cellular/onboard_modem_api.h"
|
#include "cellular/onboard_modem_api.h"
|
||||||
#include "UARTSerial.h"
|
#include "UARTSerial.h"
|
||||||
|
@ -61,3 +63,5 @@ CellularDevice *CellularDevice::get_target_default_instance()
|
||||||
static ONBOARD_SARA4_PPP device(&serial);
|
static ONBOARD_SARA4_PPP device(&serial);
|
||||||
return &device;
|
return &device;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // MBED_CONF_NSAPI_PRESENT
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if MBED_CONF_NSAPI_PRESENT
|
||||||
|
|
||||||
#include "ONBOARD_QUECTEL_BC95.h"
|
#include "ONBOARD_QUECTEL_BC95.h"
|
||||||
|
|
||||||
#include "UARTSerial.h"
|
#include "UARTSerial.h"
|
||||||
|
@ -57,3 +59,5 @@ CellularDevice *CellularDevice::get_target_default_instance()
|
||||||
static ONBOARD_QUECTEL_BC95 device(&serial);
|
static ONBOARD_QUECTEL_BC95 device(&serial);
|
||||||
return &device;
|
return &device;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // MBED_CONF_NSAPI_PRESENT
|
||||||
|
|
Loading…
Reference in New Issue