-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathcore-peripherals-index.schema.json
More file actions
75 lines (75 loc) · 2.32 KB
/
core-peripherals-index.schema.json
File metadata and controls
75 lines (75 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"$comment": "Index of core peripheral SCVD files and conditions when to use them.",
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/Open-CMSIS-Pack/vscode-cmsis-debugger/configs/core-peripherals/core-peripherals-index.schema.json",
"title": "Core Peripherals index",
"description": "Index listing core peripheral SCVD description files and CPU type/feature conditions under which each file is active.",
"version": "0.1.0",
"type": "object",
"properties": {
"core-peripherals": {
"$ref": "#/definitions/CorePeripherals"
}
},
"required": ["core-peripherals"],
"additionalProperties": false,
"definitions": {
"CorePeripherals": {
"type": "array",
"description": "Array of core peripheral entries (SCVD files with optional activation conditions).",
"items": {
"$ref": "#/definitions/CorePeripheralEntry"
},
"minItems": 0,
"uniqueItems": true
},
"CorePeripheralEntry": {
"type": "object",
"description": "Single SCVD description entry with optional CPU type and CPU feature conditions.",
"properties": {
"file": {
"$ref": "#/definitions/ScvdFileType"
},
"cpu-type": {
"$ref": "#/definitions/CpuType"
},
"cpu-features": {
"$ref": "#/definitions/CpuFeatures"
},
"info": {
"type": "string",
"description": "Optional human-readable description."
}
},
"required": ["file"],
"additionalProperties": false
},
"ScvdFileType": {
"type": "string",
"description": "Path or identifier of the SCVD description file."
},
"CpuType": {
"description": "Specifies one or more CPU types. '*' is allowed as wildcard and is the default if omitted.",
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
},
"minItems": 1,
"uniqueItems": true
}
]
},
"CpuFeatures": {
"type": "object",
"description": "Map of CPU features and their value. Each feature key may only appear once. '*' is allowed as wildcard and is the default if omitted.",
"additionalProperties": {
"type": "string"
}
}
}
}