Skip to content

Commit 3ae0b66

Browse files
committed
mbed2_porting: JSON syntax highlighting
1 parent d9dd7cd commit 3ae0b66

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/program-setup/bare_metal/mbed2_porting.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,19 @@ Configure your target to support Mbed OS 6:
3434
3535
1. Remove the `release_versions` property; it is no longer required:
3636
37-
```
37+
```json
3838
"release_versions": ["2"]
3939
```
4040
4141
1. To indicate that the application profile supported by this target is bare metal, add the `supported_application_profiles` property:
4242
43-
```
43+
```json
4444
"supported_application_profiles" : ["bare-metal"]
4545
```
4646
4747
1. Override `supported_c_libs` property to link with the smaller C libraries. The default for all targets is defined as follows:
4848
49-
```
49+
```json
5050
"supported_c_libs": {
5151
"arm": ["std"],
5252
"gcc_arm": ["std", "small"],
@@ -56,7 +56,7 @@ Configure your target to support Mbed OS 6:
5656
5757
Both the ARM and GCC_ARM toolchains support optimized versions of the C standard libraries - microlib and newlib-nano, respectively. We recommend using them with the bare metal profile for lower memory footprints. Ultraconstrained targets should override `supported_c_libs`:
5858
59-
```
59+
```json
6060
"supported_c_libs": {
6161
"arm": ["small"],
6262
"gcc_arm": ["small"]
@@ -67,7 +67,7 @@ Configure your target to support Mbed OS 6:
6767
6868
For each toolchain, if there is enough memory to link with the standard library, add the corresponding `std` library to the list. For example:
6969
70-
```
70+
```json
7171
"supported_c_libs": {
7272
"arm": ["std", "small"],
7373
"gcc_arm": ["std", "small"],
@@ -92,7 +92,7 @@ Configure your target to support Mbed OS 6:
9292
9393
1. If your board does not have a low power ticker, ensure that tickless is enabled using the microsecond ticker:
9494
95-
```
95+
```json
9696
"overrides": {
9797
"tickless-from-us-ticker": true
9898
}
@@ -102,7 +102,7 @@ Configure your target to support Mbed OS 6:
102102
103103
The stack size is configured by setting a value for the `boot-stack-size` attribute; this value must be a multiple of 8 for alignment purposes. We recommend that you reduce the boot stack size to 0x400 (1,024 bytes) if your target has 8KB of RAM and to 0x300 (768 bytes) if your target has 4KB of RAM.
104104
105-
```
105+
```json
106106
"overrides": {
107107
"boot-stack-size": "0x400"
108108
}
@@ -160,7 +160,7 @@ Further optimisations for targets with small flash memories:
160160
161161
Modify `TESTS/configs/baremetal.json` for your target:
162162
163-
```
163+
```json
164164
{
165165
"target_overrides": {
166166
"YOUR_TARGET": {

0 commit comments

Comments
 (0)