Skip to content

Commit ff11e7f

Browse files
committed
updated readme to include a basic description of features.
1 parent dbeee2a commit ff11e7f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/mbed_targets.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@ The list of **labels** defines how the build system looks for sources, libraries
114114

115115
If target inheritance is used, it's possible to alter the values of `extra_labels` using `extra_labels_add` and `extra_labels_remove`. This is similar to the `macros_add` and `macros_remove` mechanism described in the previous paragraph.
116116

117+
## features, features_add, features_remove
118+
119+
The list of **features** defines what hardware a device has.
120+
This allows allowing mbed, libraries, or application source code to select between different implementations of drivers based on hardware availability, to selectively compile drivers for only the hardware that exists, or to test only the tests that apply to a particular platform.
121+
122+
If target inheritance is used, it's possible to alter the values of `features` using `features_add` and `features_remove`. This is similar to the `macros_add` and `macros_remove` mechanism described in the previous two paragraphs.
123+
117124
## supported_toolchains
118125

119126
This is the list of toolchains that can be used to compile code for the target. The known toolchains are `ARM`, `uARM`, `GCC_ARM`, `GCC_CR`, `IAR`.

0 commit comments

Comments
 (0)