forked from ARMmbed/mbed-os
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document and clean up wifi and LoRa modules, add ability in Python to…
… get non-public targets (#247) * Add a way to get target attributes for non public targets * Document all WiFi and LoRa modules * Fix some errors * Fix another CMake error
- Loading branch information
1 parent
f19273a
commit 7501ee7
Showing
18 changed files
with
104 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,38 @@ | ||
# Copyright (c) 2020-2021 ARM Limited. All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
add_library(mbed-wifi STATIC EXCLUDE_FROM_ALL) | ||
# The 'mbed-wifi' target is lazily created because there might not be any subdirectories needing it at all. | ||
macro(create_mbed_wifi_target) | ||
if(NOT TARGET mbed-wifi) | ||
add_library(mbed-wifi STATIC EXCLUDE_FROM_ALL) | ||
|
||
add_subdirectory(TARGET_WICED EXCLUDE_FROM_ALL) | ||
target_link_libraries(mbed-wifi | ||
PUBLIC | ||
mbed-rtos-flags | ||
mbed-netsocket-api | ||
) | ||
endif() | ||
endmacro() | ||
|
||
add_subdirectory(TARGET_STM EXCLUDE_FROM_ALL) | ||
|
||
# The WICED subdirectory is for wifi drivers developed using Infineon WICED framework. | ||
# https://community.infineon.com/t5/Knowledge-Base-Articles/WICED-Wi-Fi-FAQ/ta-p/247356 | ||
if("WICED" IN_LIST MBED_TARGET_LABELS) | ||
create_mbed_wifi_target() | ||
add_subdirectory(TARGET_WICED EXCLUDE_FROM_ALL) | ||
endif() | ||
|
||
if("STM" IN_LIST MBED_TARGET_LABELS) | ||
add_subdirectory(TARGET_STM EXCLUDE_FROM_ALL) | ||
endif() | ||
|
||
if("WHD" IN_LIST MBED_TARGET_LABELS) | ||
create_mbed_wifi_target() | ||
add_subdirectory(COMPONENT_WHD EXCLUDE_FROM_ALL) | ||
endif() | ||
|
||
add_subdirectory(esp8266-driver) | ||
if("COMPONENT_ESPRESSIF_ESP8266=1" IN_LIST MBED_TARGET_DEFINITIONS) | ||
create_mbed_wifi_target() | ||
add_subdirectory(COMPONENT_ESPRESSIF_ESP8266) | ||
endif() | ||
|
||
target_link_libraries(mbed-wifi | ||
PUBLIC | ||
mbed-rtos-flags | ||
mbed-netsocket-api | ||
) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters