Skip to content

Commit b4bc521

Browse files
committed
CMake: Add support for WICED target
* Add CMakeLists.txt file * Update the list of supported target
1 parent e77b1d8 commit b4bc521

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

targets/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ elseif("Freescale" IN_LIST MBED_TARGET_LABELS)
77
add_subdirectory(TARGET_Freescale)
88
elseif("NORDIC" IN_LIST MBED_TARGET_LABELS)
99
add_subdirectory(TARGET_NORDIC)
10+
elseif("NUVOTON" IN_LIST MBED_TARGET_LABELS)
11+
add_subdirectory(TARGET_NUVOTON)
1012
elseif("STM" IN_LIST MBED_TARGET_LABELS)
1113
add_subdirectory(TARGET_STM)
12-
elseif("NUVOTON" IN_LIST MBED_TARGET_LABELS)
13-
add_subdirectory(TARGET_NUVOTON)
14+
elseif("WICED" IN_LIST MBED_TARGET_LABELS)
15+
add_subdirectory(TARGET_WICED)
1416
endif()

targets/TARGET_WICED/CMakeLists.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright (c) 2020 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
if("WIO_EMW3166" IN_LIST MBED_TARGET_LABELS)
5+
if(${MBED_TOOLCHAIN} STREQUAL "ARM")
6+
set(LIB_WICED_DRIVERS TOOLCHAIN_ARMC6/TARGET_WIO_EMW3166/libwiced_drivers.ar)
7+
elseif(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
8+
set(LIB_WICED_DRIVERS TOOLCHAIN_GCC_ARM/TARGET_WIO_EMW3166/libwiced_drivers.a)
9+
endif()
10+
endif()
11+
12+
target_link_libraries(mbed-core INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/${LIB_WICED_DRIVERS})
13+
14+
target_include_directories(mbed-core
15+
INTERFACE
16+
wiced_interface
17+
)
18+
19+
target_sources(mbed-core
20+
INTERFACE
21+
wiced_interface/default_wifi_interface.cpp
22+
)

tools/cmake/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@ The full profile with the selected printf and C libraries.
1919
Only a limited set of targets is supported at the moment.
2020

2121
The following targets are supported:
22-
- K64F
23-
- K66F
2422
- NRF52840_DK
2523
- ARM FM targets
2624
- Freescale targets
2725
- STM targets
26+
- WICED
2827

2928
### Supported toolchains
3029

0 commit comments

Comments
 (0)