mirror of https://github.com/ARMmbed/mbed-os.git
cellular: remove last CELLULAR_DEVICE references
parent
964f5ad321
commit
614b014d05
|
|
@ -21,7 +21,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "CellularUtil.h" // for CELLULAR_ helper macros
|
#include "CellularUtil.h" // for CELLULAR_ helper macros
|
||||||
#include "CellularTargets.h"
|
|
||||||
|
|
||||||
#ifndef MBED_CONF_APP_CELLULAR_SIM_PIN
|
#ifndef MBED_CONF_APP_CELLULAR_SIM_PIN
|
||||||
#error [NOT_SUPPORTED] SIM pin code is needed. Skipping this build.
|
#error [NOT_SUPPORTED] SIM pin code is needed. Skipping this build.
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "CellularUtil.h" // for CELLULAR_ helper macros
|
#include "CellularUtil.h" // for CELLULAR_ helper macros
|
||||||
#include "CellularTargets.h"
|
|
||||||
|
|
||||||
#ifndef MBED_CONF_APP_CELLULAR_SIM_PIN
|
#ifndef MBED_CONF_APP_CELLULAR_SIM_PIN
|
||||||
#error [NOT_SUPPORTED] SIM pin code is needed. Skipping this build.
|
#error [NOT_SUPPORTED] SIM pin code is needed. Skipping this build.
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@
|
||||||
#ifndef CELLULAR_DEVICE_H_
|
#ifndef CELLULAR_DEVICE_H_
|
||||||
#define CELLULAR_DEVICE_H_
|
#define CELLULAR_DEVICE_H_
|
||||||
|
|
||||||
#include "CellularTargets.h"
|
|
||||||
#include "CellularStateMachine.h"
|
#include "CellularStateMachine.h"
|
||||||
#include "Callback.h"
|
#include "Callback.h"
|
||||||
#include "ATHandler.h"
|
#include "ATHandler.h"
|
||||||
|
|
@ -63,8 +62,9 @@ public:
|
||||||
SimStateUnknown
|
SimStateUnknown
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Returns singleton instance of CellularDevice if CELLULAR_DEVICE is defined. If CELLULAR_DEVICE is not
|
/** Returns singleton instance of CellularDevice, if Mbed target board has a supported
|
||||||
* defined, then it returns NULL. See NetworkInterface::get_default_instance for details.
|
* onboard modem, or provide-default is defined for a cellular driver in JSON configuration
|
||||||
|
* files. Otherwise returns NULL. See NetworkInterface::get_default_instance for details.
|
||||||
*
|
*
|
||||||
* @remark Application may override this (non-weak) default implementation.
|
* @remark Application may override this (non-weak) default implementation.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -1,55 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright (c) 2017, Arm Limited and affiliates.
|
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef CELLULAR_TARGETS_H_
|
|
||||||
#define CELLULAR_TARGETS_H_
|
|
||||||
|
|
||||||
namespace mbed {
|
|
||||||
|
|
||||||
#ifndef CELLULAR_DEVICE
|
|
||||||
#if defined(TARGET_ADV_WISE_1570) || defined(TARGET_MTB_ADV_WISE_1570)
|
|
||||||
#define CELLULAR_DEVICE QUECTEL_BC95
|
|
||||||
#elif TARGET_WIO_3G
|
|
||||||
#define CELLULAR_DEVICE QUECTEL_UG96
|
|
||||||
#elif TARGET_WIO_BG96
|
|
||||||
#define CELLULAR_DEVICE QUECTEL_BG96
|
|
||||||
#elif TARGET_MTS_DRAGONFLY_F411RE
|
|
||||||
#define CELLULAR_DEVICE TELIT_HE910
|
|
||||||
#elif TARGET_MTB_MTS_DRAGONFLY
|
|
||||||
#define CELLULAR_DEVICE TELIT_HE910
|
|
||||||
#elif TARGET_UBLOX_C030
|
|
||||||
#if defined(TARGET_UBLOX_C030_R41XM)
|
|
||||||
#define CELLULAR_DEVICE UBLOX_AT
|
|
||||||
#elif defined(TARGET_UBLOX_C030_N211)
|
|
||||||
#define CELLULAR_DEVICE UBLOX_N2XX
|
|
||||||
#else
|
|
||||||
#define CELLULAR_DEVICE UBLOX_PPP
|
|
||||||
#endif
|
|
||||||
#elif TARGET_UBLOX_C027
|
|
||||||
#define CELLULAR_DEVICE UBLOX_PPP
|
|
||||||
#elif TARGET_MTS_DRAGONFLY_L471QG
|
|
||||||
#define CELLULAR_DEVICE SARA4_PPP
|
|
||||||
//#else
|
|
||||||
//#error Cellular target not defined, see cellular/targets.h
|
|
||||||
//#define CELLULAR_TARGET <target-modem>
|
|
||||||
//#define MDMTXD <pin-name>
|
|
||||||
//#define MDMRXD <pin-name>
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
} // namespace mbed
|
|
||||||
#endif // CELLULAR_TARGETS_H_
|
|
||||||
|
|
@ -19,7 +19,6 @@
|
||||||
#include "CellularContext.h"
|
#include "CellularContext.h"
|
||||||
#include "CellularUtil.h"
|
#include "CellularUtil.h"
|
||||||
#include "CellularLog.h"
|
#include "CellularLog.h"
|
||||||
#include "CellularTargets.h"
|
|
||||||
#include "events/EventQueue.h"
|
#include "events/EventQueue.h"
|
||||||
|
|
||||||
namespace mbed {
|
namespace mbed {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue