Skip to content

Commit f19273a

Browse files
author
Jamie Smith
authored
Begin documenting Mbed OS target features and components (#240)
* Start on documenting features and components * Missed some renames * Go through all cellular and 802.15.4 modules * Fix build * Fix style * Update copyright year
1 parent d1b0cca commit f19273a

File tree

228 files changed

+732
-2876
lines changed

Some content is hidden

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

228 files changed

+732
-2876
lines changed

connectivity/drivers/802.15.4_RF/CMakeLists.txt

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

4-
add_library(mbed-802.15.4-rf STATIC EXCLUDE_FROM_ALL)
4+
# The 'mbed-802.15.4-rf' target is lazily created because there might not be any subdirectories needing it at all.
5+
macro(create_802_15_4_target)
6+
if(NOT TARGET create_802_15_4_target)
7+
add_library(mbed-802.15.4-rf STATIC EXCLUDE_FROM_ALL)
8+
9+
# Nanostack drivers always require Mbed RTOS
10+
target_link_libraries(mbed-802.15.4-rf PUBLIC mbed-core-flags mbed-rtos-flags)
11+
12+
target_link_libraries(mbed-nanostack
13+
INTERFACE
14+
mbed-802.15.4-rf
15+
)
16+
endif()
17+
endmacro()
518

6-
target_link_libraries(mbed-802.15.4-rf PUBLIC mbed-core-flags)
719

820
if("Freescale" IN_LIST MBED_TARGET_LABELS)
21+
create_802_15_4_target()
922
add_subdirectory(TARGET_Freescale)
10-
add_subdirectory(mcr20a-rf-driver)
1123
elseif("Silicon_Labs" IN_LIST MBED_TARGET_LABELS)
24+
create_802_15_4_target()
1225
add_subdirectory(TARGET_Silicon_Labs)
13-
elseif("STM" IN_LIST MBED_TARGET_LABELS)
14-
add_subdirectory(stm-s2lp-rf-driver)
1526
endif()
1627

17-
add_subdirectory(atmel-rf-driver)
28+
if("COMPONENT_MICROCHIP_AT86RF=1" IN_LIST MBED_TARGET_DEFINITIONS)
29+
create_802_15_4_target()
30+
add_subdirectory(COMPONENT_MICROCHIP_AT86RF)
31+
endif()
32+
33+
if("COMPONENT_NXP_MCR20A=1" IN_LIST MBED_TARGET_DEFINITIONS)
34+
create_802_15_4_target()
35+
add_subdirectory(COMPONENT_NXP_MCR20A)
36+
endif()
37+
38+
if("COMPONENT_STM_S2_LP=1" IN_LIST MBED_TARGET_DEFINITIONS)
39+
create_802_15_4_target()
40+
add_subdirectory(COMPONENT_STM_S2_LP)
41+
endif()
42+
1843

19-
target_link_libraries(mbed-nanostack
20-
INTERFACE
21-
mbed-802.15.4-rf
22-
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)