Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion connectivity/drivers/wifi/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# Copyright (c) 2020-2021 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

add_subdirectory(TARGET_WICED EXCLUDE_FROM_ALL)

add_subdirectory(esp8266-driver)

target_link_libraries(mbed-wifi
Expand Down
22 changes: 22 additions & 0 deletions connectivity/drivers/wifi/TARGET_WICED/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright (c) 2020-2021 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

add_library(mbed-wiced INTERFACE)

if(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(LIB_WICED_DRIVERS TOOLCHAIN_ARMC6/TARGET_WIO_EMW3166/libwiced_drivers.ar)
elseif(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(LIB_WICED_DRIVERS TOOLCHAIN_GCC_ARM/TARGET_WIO_EMW3166/libwiced_drivers.a)
endif()

target_link_libraries(mbed-wiced INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/${LIB_WICED_DRIVERS})

target_include_directories(mbed-wiced
INTERFACE
wiced_interface
)

target_sources(mbed-wiced
INTERFACE
wiced_interface/default_wifi_interface.cpp
)
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@
/** WicedInterface class
* Implementation of the NetworkStack for the Wiced
*/
class WicedInterface : public WiFiInterface, public EMACInterface
{
class WicedInterface : public WiFiInterface, public EMACInterface {
public:

WicedInterface(
EMAC &emac = WICED_EMAC::get_instance(),
OnboardNetworkStack &stack = OnboardNetworkStack::get_default_instance());
EMAC &emac = WICED_EMAC::get_instance(),
OnboardNetworkStack &stack = OnboardNetworkStack::get_default_instance());

/** Start the interface
*
Expand Down Expand Up @@ -80,7 +79,8 @@ class WicedInterface : public WiFiInterface, public EMACInterface
* @param channel Channel on which the connection is to be made, or 0 for any (Default: 0)
* @return Not supported, returns NSAPI_ERROR_UNSUPPORTED
*/
nsapi_error_t set_channel(uint8_t channel) {
nsapi_error_t set_channel(uint8_t channel)
{
if (channel != 0) {
return NSAPI_ERROR_UNSUPPORTED;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ class WICED_EMAC : public EMAC {
emac_link_input_cb_t emac_link_input_cb; /**< Callback for incoming data */
emac_link_state_change_cb_t emac_link_state_cb;
EMACMemoryManager *memory_manager;

};

#endif /* WICED_EMAC_H_ */
4 changes: 1 addition & 3 deletions targets/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# Copyright (c) 2020-2021 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
include(../tools/cmake/set_linker_script.cmake)

Expand Down Expand Up @@ -34,6 +34,4 @@ elseif("STM" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_STM)
elseif("TOSHIBA" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_TOSHIBA)
elseif("WICED" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_WICED)
endif()
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# Copyright (c) 2020-2021 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

add_library(WIO_EMW3166 INTERFACE)
add_library(mbed-wio-emw3166 INTERFACE)

target_sources(WIO_EMW3166
target_sources(mbed-wio-emw3166
INTERFACE
PeripheralPins.c
)

target_include_directories(WIO_EMW3166
target_include_directories(mbed-wio-emw3166
INTERFACE
.
)

target_link_libraries(WIO_EMW3166 INTERFACE STM32F412xG)
target_link_libraries(mbed-wio-emw3166 INTERFACE mbed-wiced mbed-stm32f412xg)
22 changes: 0 additions & 22 deletions targets/TARGET_WICED/CMakeLists.txt

This file was deleted.

1 change: 0 additions & 1 deletion tools/cmake/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ The following targets are supported:
- Silicon Labs targets
- STM targets
- Toshiba targets
- WICED targets

### Supported toolchains

Expand Down