Skip to content

Commit 164c5aa

Browse files
author
Amanda Butler
authored
Update snippets in Storage.md
Update snippets with recommended changes for clarity.
1 parent b49f209 commit 164c5aa

File tree

1 file changed

+8
-20
lines changed

1 file changed

+8
-20
lines changed

docs/reference/configuration/Storage.md

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -113,38 +113,26 @@ The list above is in the order of precedence shows which block device is the def
113113

114114
#### Configuring components
115115

116-
Adding "components": ["???"] in targets.json:
116+
For example, the following entry in `targets.json` enables the SD component:
117117

118118
```
119-
"K64F": {
120-
"supported_form_factors": ["ARDUINO"],
119+
"K64F": {
121120
"components": ["SD"],
122121
"core": "Cortex-M4F",
123122
"supported_toolchains": ["ARM", "GCC_ARM", "IAR"],
124-
"extra_labels": ["Freescale", "MCUXpresso_MCUS", "KSDK2_MCUS", "FRDM", "KPSDK_MCUS", "KPSDK_CODE", "MCU_K64F", "Freescale_EMAC"],
125-
"is_disk_virtual": true,
126-
"macros": ["CPU_MK64FN1M0VMD12", "FSL_RTOS_MBED"],
127123
"inherits": ["Target"],
128-
"detect_code": ["0240"],
129-
"device_has": ["USTICKER", "LPTICKER", "RTC", "CRC", "ANALOGIN", "ANALOGOUT", "EMAC", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SERIAL_FC", "SERIAL_ASYNCH", "SLEEP", "SPI", "SPI_ASYNCH", "SPISLAVE", "STDIO_MESSAGES", "STORAGE", "TRNG", "FLASH"],
130124
"features": ["STORAGE"],
131125
"release_versions": ["2", "5"],
132-
"device_name": "MK64FN1M0xxx12",
133-
"bootloader_supported": true,
134-
"overrides": {
135-
"network-default-interface-type": "ETHERNET"
136-
}
137-
},
126+
...
127+
},
138128
```
139129

140-
Adding "target.components_add": ["???"] in application config file:
130+
The following `mbed_app.json` snippet enables the SPI flash component when compiling for the MTB_ADV_WISE_1570 target:
141131

142132
```
143-
"MTB_ADV_WISE_1570": {
144-
"target.components_add": ["SPIF"],
145-
"target.features_add": ["LWIP"],
146-
"platform.default-serial-baud-rate": 9600
147-
}
133+
"MTB_ADV_WISE_1570": {
134+
"target.components_add": ["SPIF"]
135+
}
148136
```
149137

150138
Please note that while a default block device exists, an application is not forced to use it and can create its own one.

0 commit comments

Comments
 (0)