Skip to content

Commit bfedc39

Browse files
authored
Merge pull request #14471 from arduino/whd_patch
COMPONENT_WHD: make reusable code available for other targets
2 parents 15728ab + f36c404 commit bfedc39

File tree

149 files changed

+11
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+11
-7
lines changed

.codecheckignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
^connectivity/libraries/ppp
77
^connectivity/drivers/emac
88
^connectivity/drivers/mbedtls
9+
^connectivity/drivers/wifi/COMPONENT_WHD
910
^connectivity/mbedtls
1011
^features/frameworks
1112
^connectivity/lwipstack/lwip

connectivity/drivers/emac/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ elseif("Silicon_Labs" IN_LIST MBED_TARGET_LABELS)
2525
add_subdirectory(TARGET_Silicon_Labs)
2626
endif()
2727

28+
if("WHD" IN_LIST MBED_TARGET_LABELS)
29+
add_subdirectory(COMPONENT_WHD)
30+
endif()
31+
2832
target_link_libraries(mbed-emac
2933
INTERFACE
3034
mbed-netsocket

connectivity/drivers/emac/TARGET_Cypress/COMPONENT_WHD/interface/CyDhcpServer.h renamed to connectivity/drivers/emac/COMPONENT_WHD/interface/CyDhcpServer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class CyDhcpServer {
100100
NetworkStack *_nstack = NULL;
101101
NetworkInterface *_niface = NULL;
102102
UDPSocket _socket;
103-
Thread _thread;
103+
rtos::Thread _thread;
104104
bool _running = false;
105105

106106
cy_ip_addr_t _available_addr;

connectivity/drivers/emac/TARGET_Cypress/COMPONENT_WHD/interface/WhdSTAInterface.cpp renamed to connectivity/drivers/emac/COMPONENT_WHD/interface/WhdSTAInterface.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "whd_emac.h"
2828
#include "whd_wifi_api.h"
2929
#include "whd_wlioctl.h"
30+
#include "cy_utils.h"
3031

3132
#define CMP_MAC( a, b ) (((((unsigned char*)a)[0])==(((unsigned char*)b)[0]))&& \
3233
((((unsigned char*)a)[1])==(((unsigned char*)b)[1]))&& \

connectivity/drivers/emac/TARGET_Cypress/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,3 @@
44
if("SCL" IN_LIST MBED_TARGET_LABELS)
55
add_subdirectory(COMPONENT_SCL)
66
endif()
7-
8-
if("WHD" IN_LIST MBED_TARGET_LABELS)
9-
add_subdirectory(COMPONENT_WHD)
10-
endif()

connectivity/drivers/wifi/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
add_subdirectory(TARGET_WICED EXCLUDE_FROM_ALL)
55

6+
add_subdirectory(COMPONENT_WHD EXCLUDE_FROM_ALL)
7+
68
add_subdirectory(esp8266-driver)
79

810
target_link_libraries(mbed-wifi

targets/TARGET_Cypress/TARGET_PSOC6/COMPONENT_WHD/CMakeLists.txt renamed to connectivity/drivers/wifi/COMPONENT_WHD/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Copyright (c) 2020-2021 ARM Limited. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4+
add_subdirectory(network EXCLUDE_FROM_ALL)
5+
46
add_library(mbed-cy-psoc6-whd-43012 INTERFACE)
57
target_include_directories(mbed-cy-psoc6-whd-43012
68
INTERFACE

targets/TARGET_Cypress/TARGET_PSOC6/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
add_subdirectory(COMPONENT_SCL EXCLUDE_FROM_ALL)
5-
add_subdirectory(COMPONENT_WHD EXCLUDE_FROM_ALL)
6-
add_subdirectory(common/COMPONENT_WHD EXCLUDE_FROM_ALL)
75

86
add_library(mbed-cat1a INTERFACE)
97

0 commit comments

Comments
 (0)