Merge branch 'hk_cmake_wiced_suppport' of https://github.com/hugueskamba/mbed-os into hugueskamba-hk_cmake_wiced_suppport

pull/14024/head
Martin Kojtal 2020-12-10 13:32:20 +00:00
commit ae74aa6acd
3 changed files with 25 additions and 0 deletions

View File

@ -21,4 +21,6 @@ elseif("Silicon_Labs" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_Silicon_Labs)
elseif("STM" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_STM)
elseif("WICED" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_WICED)
endif()

View File

@ -0,0 +1,22 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if("WIO_EMW3166" IN_LIST MBED_TARGET_LABELS)
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()
endif()
target_link_libraries(mbed-core INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/${LIB_WICED_DRIVERS})
target_include_directories(mbed-core
INTERFACE
wiced_interface
)
target_sources(mbed-core
INTERFACE
wiced_interface/default_wifi_interface.cpp
)

View File

@ -28,6 +28,7 @@ The following targets are supported:
- NXP targets
- Silicon Labs targets
- STM targets
- WICED
### Supported toolchains