From e2d3769211fc5b03cc33dda74db770bbde1978a7 Mon Sep 17 00:00:00 2001 From: Seppo Takalo Date: Tue, 19 Jun 2018 13:41:22 +0300 Subject: [PATCH 1/2] Provide default WiFI interface for REALTEK_RTL8195AM --- .../TARGET_AMEBA/default_wifi_interface.cpp | 24 +++++++++++++++++++ targets/targets.json | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 targets/TARGET_Realtek/TARGET_AMEBA/default_wifi_interface.cpp diff --git a/targets/TARGET_Realtek/TARGET_AMEBA/default_wifi_interface.cpp b/targets/TARGET_Realtek/TARGET_AMEBA/default_wifi_interface.cpp new file mode 100644 index 00000000000..9ad995a69da --- /dev/null +++ b/targets/TARGET_Realtek/TARGET_AMEBA/default_wifi_interface.cpp @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2018, 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. + */ + +#include "RTWInterface.h" + +WiFiInterface *WiFiInterface::get_target_default_instance() +{ + static RTWInterface wifi; + return &wifi; +} diff --git a/targets/targets.json b/targets/targets.json index 0caa840408a..b6b3a4f4009 100755 --- a/targets/targets.json +++ b/targets/targets.json @@ -4006,7 +4006,7 @@ }, "release_versions": ["5"], "overrides": { - "network-default-interface-type": "ETHERNET" + "network-default-interface-type": "WIFI" } }, "VBLUNO51_LEGACY": { From b4726cbca5eaa39b56575e22a1ebb3766a179237 Mon Sep 17 00:00:00 2001 From: Seppo Takalo Date: Tue, 19 Jun 2018 13:41:42 +0300 Subject: [PATCH 2/2] Provide default WiFi interface for Ublox EVK ODIN W2 --- .../default_wifi_interface.cpp | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_MODULE_UBLOX_ODIN_W2/sdk/ublox-odin-w2-drivers/default_wifi_interface.cpp diff --git a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_MODULE_UBLOX_ODIN_W2/sdk/ublox-odin-w2-drivers/default_wifi_interface.cpp b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_MODULE_UBLOX_ODIN_W2/sdk/ublox-odin-w2-drivers/default_wifi_interface.cpp new file mode 100644 index 00000000000..70db323ebe3 --- /dev/null +++ b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_MODULE_UBLOX_ODIN_W2/sdk/ublox-odin-w2-drivers/default_wifi_interface.cpp @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2018, 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. + */ + +#include "OdinWiFiInterface.h" + +WiFiInterface *WiFiInterface::get_target_default_instance() +{ + static OdinWiFiInterface wifi; + return &wifi; +}