Added mux-enabled flag in cellular mbed_lib.json

pull/6082/head
Ari Parkkila 2018-02-28 13:14:08 +02:00
parent 020e15828d
commit b159a51821
4 changed files with 18 additions and 1 deletions

View File

@ -15,6 +15,8 @@
* limitations under the License.
*/
#if MBED_CONF_CELLULAR_MUX_ENABLED
#include <errno.h>
#include "cellular_mux.h"
#include "mbed_retarget.h"
@ -1251,3 +1253,5 @@ short Mux::poll()
}
} // namespace mbed
#endif // MBED_CONF_CELLULAR_MUX_ENABLED

View File

@ -15,6 +15,8 @@
* limitations under the License.
*/
#if MBED_CONF_CELLULAR_MUX_ENABLED
#ifndef MUX_H
#define MUX_H
@ -577,3 +579,5 @@ private:
} // namespace mbed
#endif
#endif // MBED_CONF_CELLULAR_MUX_ENABLED

View File

@ -14,6 +14,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#if MBED_CONF_CELLULAR_MUX_ENABLED
#include "cellular_mux.h"
namespace mbed
@ -57,3 +60,5 @@ void MuxDataService::sigio(Callback<void()> func)
}
} // namespace mbed
#endif // MBED_CONF_CELLULAR_MUX_ENABLED

View File

@ -1,9 +1,13 @@
{
"name": "cellular",
"config": {
"use_apn_lookup": {
"use-apn-lookup": {
"help": "Use APN database lookup",
"value": true
},
"mux-enabled": {
"help": "Use cellular modem over MUX",
"value": false
}
}
}