@@ -28,22 +28,20 @@ Mbed Cloud Client provides reference implementation for three Mbed Enabled targe
28
28
29
29
Our sample target is identified by the following:
30
30
31
- * The name of the target for builds is ` MyTarget123 ` .
31
+ * The name of the target for builds is ` MY_BOARD_1 ` .
32
32
* A Cortex-M4F based core.
33
33
* Supports Mbed OS v5.x.
34
34
* Has SERIAL interface as a bare minimum to print standard printf messages to the console, once built successfully.
35
35
* Supports ARMCC and IAR compilers.
36
- * Inherits some features, such as the default toolchain and the virtual disk, from the standard ` target ` defined in ` targets.json ` .
37
- * Has all the drivers, APIs, HAL and so on defined in the ` /mbed-os/TARGETS ` directory as
38
- ` TARGET_MY_Vendor/TARGET_VendorMCUs/TARGET_VendorDevice1/TARGET_VendorBoard_1 ` .
36
+ * Inherits some features, such as the default toolchain and the virtual disk, from the standard ` Target ` defined in ` targets.json ` .
39
37
* The public flag is set to ` true ` to indicate that this target is visible for compilation from the toolchains.
40
38
41
39
All of these requirements are directly mapped to relevant tags in the ` targets.json ` entry for our target. This is shown in step 3 below.
42
40
43
41
44
42
### Add the target entry in ` targets.json `
45
43
```
46
- "MyTarget123 ": {
44
+ "MY_BOARD_1 ": {
47
45
"inherits":["Target"],
48
46
"core":"Cortex-M4F",
49
47
"public": true,
@@ -68,12 +66,12 @@ The target’s directory structure has the following hierarchy:
68
66
- The specific board that uses the MCU in the previous level:
69
67
70
68
```
71
- \ mbed-os\ targets\ TARGET_<Manf>\ <Device_Family>\ <specific_MCU>\ <specific_board>\
69
+ / mbed-os/ targets/ TARGET_<Manf>/ <Device_Family>/ <specific_MCU>/ <specific_board>/
72
70
```
73
71
74
72
Our sample implementation uses:
75
73
```
76
- \ mbed-os\ targets\TARGET_MY_Vendor\TARGET_VendorMCUs\TARGET_VendorDevice1\TARGET_VendorBoard_1\
74
+ / mbed-os/ targets/TARGET_MY_VENDOR/TARGET_MY_FAMILY/TARGET_MY_DEVICE_1/TARGET_MY_BOARD_1/
77
75
```
78
76
79
77
0 commit comments