Skip to content

Commit 5a249e3

Browse files
authored
Merge pull request #12 from eclipse-cdt-cloud/rename
Rename to Peripheral Inspector
2 parents eceff46 + 6591578 commit 5a249e3

4 files changed

Lines changed: 84 additions & 84 deletions

File tree

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Cortex Debug SVD Viewer
1+
# Embedded Peripheral Inspector
22

33
Standalone SVD Viewer extension extracted from [cortex-debug](https://github.com/Marus/cortex-debug)
44

@@ -10,12 +10,12 @@ Choose one of the following methods to specify your SVD file in your `launch.jso
1010

1111
### Use the CMSIS pack asset service
1212

13-
Set the `svdPath` configuration variable to a qualified pack reference in the form `<vendor>::<device family pack>@<version>` e.g.:
13+
Set the `definitionPath` configuration variable to a qualified pack reference in the form `<vendor>::<device family pack>@<version>` e.g.:
1414

1515
```json
1616
{
1717
...
18-
"svdPath": "NXP::K32L3A60_DFP@15.0.0"
18+
"definitionPath": "NXP::K32L3A60_DFP@15.0.0"
1919
...
2020
}
2121
```
@@ -25,7 +25,7 @@ If the pack supports multiple devices and/or processors, you will be prompted to
2525
```json
2626
{
2727
...
28-
"svdPath": "NXP::K32L3A60_DFP@15.0.0",
28+
"definitionPath": "NXP::K32L3A60_DFP@15.0.0",
2929
"deviceName": "K32L3A60VPJ1A",
3030
"processorName": "cm4"
3131
...
@@ -37,7 +37,7 @@ __TIP:__ The pack reference and device name can be automatically derived if you
3737
```json
3838
{
3939
...
40-
"svdPath": "${command:device-manager.getDevicePack}",
40+
"definitionPath": "${command:device-manager.getDevicePack}",
4141
"deviceName": "${command:device-manager.getDeviceName}"
4242
...
4343
}
@@ -61,12 +61,12 @@ You can obtain an SVD file from a [CMSIS pack](https://developer.arm.com/tools-a
6161

6262
Other vendors may ship SVD files when you install their software or device packs or you could write your own custom SVD file.
6363

64-
Once you have the SVD file, specify the location of it in your `launch.json` using the `svdPath` variable:
64+
Once you have the SVD file, specify the location of it in your `launch.json` using the `definitionPath` variable:
6565

6666
```json
6767
{
6868
...
69-
"svdPath": "${workspaceFolder}/STM32F103.svd"
69+
"definitionPath": "${workspaceFolder}/STM32F103.svd"
7070
...
7171
}
7272
```
@@ -77,6 +77,6 @@ All variable key names used to extract data from debug launch configurations can
7777

7878
The following list outlines the setting names and default values:
7979

80-
- `svd-viewer.svdPathConfig` - Debug configuration key to use to get the SVD path (default `svdPath`)
81-
- `svd-viewer.deviceConfig` - Debug configuration key to use to get the device name (default: `deviceName`)
82-
- `svd-viewer.processorConfig` - Debug configuration key to use to get the processor name (default: `processorName`)
80+
- `peripheral-inspector.definitionPathConfig` - Debug configuration key to use to get the SVD path (default `definitionPath`)
81+
- `peripheral-inspector.deviceConfig` - Debug configuration key to use to get the device name (default: `deviceName`)
82+
- `peripheral-inspector.processorConfig` - Debug configuration key to use to get the processor name (default: `processorName`)

package.json

Lines changed: 70 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "svd-viewer",
3-
"displayName": "SVD Viewer",
4-
"description": "Standalone SVD Viewer extension extracted from cortex-debug",
2+
"name": "peripheral-inspector",
3+
"displayName": "Peripheral Inspector",
4+
"description": "Standalone Peripheral Inspector extension extracted from cortex-debug",
55
"version": "1.3.0",
66
"preview": true,
77
"publisher": "eclipse-cdt",
@@ -65,218 +65,218 @@
6565
"views": {
6666
"debug": [
6767
{
68-
"id": "svd-viewer.svd",
68+
"id": "peripheral-inspector.svd",
6969
"name": "Peripherals",
70-
"when": "svd-viewer.svd.hasData"
70+
"when": "peripheral-inspector.svd.hasData"
7171
}
7272
]
7373
},
7474
"commands": [
7575
{
76-
"command": "svd-viewer.svd.updateNode",
76+
"command": "peripheral-inspector.svd.updateNode",
7777
"title": "Update Value",
7878
"icon": "$(edit)"
7979
},
8080
{
81-
"command": "svd-viewer.svd.copyValue",
81+
"command": "peripheral-inspector.svd.copyValue",
8282
"title": "Copy Value",
8383
"icon": "$(files)"
8484
},
8585
{
86-
"command": "svd-viewer.svd.forceRefresh",
86+
"command": "peripheral-inspector.svd.forceRefresh",
8787
"title": "Refresh",
8888
"icon": "$(refresh)"
8989
},
9090
{
91-
"command": "svd-viewer.svd.pin",
91+
"command": "peripheral-inspector.svd.pin",
9292
"title": "Pin",
9393
"icon": "$(pin)"
9494
},
9595
{
96-
"command": "svd-viewer.svd.unpin",
96+
"command": "peripheral-inspector.svd.unpin",
9797
"title": "Unpin",
9898
"icon": "$(pinned)"
9999
},
100100
{
101-
"command": "svd-viewer.svd.setFormat",
101+
"command": "peripheral-inspector.svd.setFormat",
102102
"title": "Set Value Format",
103103
"icon": "$(symbol-unit)"
104104
},
105105
{
106-
"command": "svd-viewer.svd.refreshAll",
106+
"command": "peripheral-inspector.svd.refreshAll",
107107
"title": "Refresh All",
108108
"icon": "$(refresh)"
109109
}
110110
],
111111
"menus": {
112112
"commandPalette": [
113113
{
114-
"command": "svd-viewer.svd.updateNode",
114+
"command": "peripheral-inspector.svd.updateNode",
115115
"when": "false"
116116
},
117117
{
118-
"command": "svd-viewer.svd.copyValue",
118+
"command": "peripheral-inspector.svd.copyValue",
119119
"when": "false"
120120
},
121121
{
122-
"command": "svd-viewer.svd.forceRefresh",
122+
"command": "peripheral-inspector.svd.forceRefresh",
123123
"when": "false"
124124
},
125125
{
126-
"command": "svd-viewer.svd.pin",
126+
"command": "peripheral-inspector.svd.pin",
127127
"when": "false"
128128
},
129129
{
130-
"command": "svd-viewer.svd.unpin",
130+
"command": "peripheral-inspector.svd.unpin",
131131
"when": "false"
132132
},
133133
{
134-
"command": "svd-viewer.svd.setFormat",
134+
"command": "peripheral-inspector.svd.setFormat",
135135
"when": "false"
136136
},
137137
{
138-
"command": "svd-viewer.svd.refreshAll",
138+
"command": "peripheral-inspector.svd.refreshAll",
139139
"when": "false"
140140
}
141141
],
142142
"touchBar": [
143143
{
144-
"command": "svd-viewer.svd.forceRefresh",
145-
"when": "view == svd-viewer.svd && viewItem == registerRW"
144+
"command": "peripheral-inspector.svd.forceRefresh",
145+
"when": "view == peripheral-inspector.svd && viewItem == registerRW"
146146
},
147147
{
148-
"command": "svd-viewer.svd.forceRefresh",
149-
"when": "view == svd-viewer.svd && viewItem == register"
148+
"command": "peripheral-inspector.svd.forceRefresh",
149+
"when": "view == peripheral-inspector.svd && viewItem == register"
150150
},
151151
{
152-
"command": "svd-viewer.svd.forceRefresh",
153-
"when": "view == svd-viewer.svd && viewItem == registerRO"
152+
"command": "peripheral-inspector.svd.forceRefresh",
153+
"when": "view == peripheral-inspector.svd && viewItem == registerRO"
154154
},
155155
{
156-
"command": "svd-viewer.svd.forceRefresh",
157-
"when": "view == svd-viewer.svd && viewItem =~ /peripheral.*/"
156+
"command": "peripheral-inspector.svd.forceRefresh",
157+
"when": "view == peripheral-inspector.svd && viewItem =~ /peripheral.*/"
158158
},
159159
{
160-
"command": "svd-viewer.svd.pin",
161-
"when": "view == svd-viewer.svd && viewItem == peripheral"
160+
"command": "peripheral-inspector.svd.pin",
161+
"when": "view == peripheral-inspector.svd && viewItem == peripheral"
162162
},
163163
{
164-
"command": "svd-viewer.svd.unpin",
165-
"when": "view == svd-viewer.svd && viewItem == peripheral.pinned"
164+
"command": "peripheral-inspector.svd.unpin",
165+
"when": "view == peripheral-inspector.svd && viewItem == peripheral.pinned"
166166
}
167167
],
168168
"view/title": [
169169
{
170-
"command": "svd-viewer.svd.refreshAll",
171-
"when": "view == svd-viewer.svd && debugState == stopped",
170+
"command": "peripheral-inspector.svd.refreshAll",
171+
"when": "view == peripheral-inspector.svd && debugState == stopped",
172172
"group": "navigation"
173173
}
174174
],
175175
"view/item/context": [
176176
{
177-
"command": "svd-viewer.svd.updateNode",
178-
"when": "view == svd-viewer.svd && viewItem == field",
177+
"command": "peripheral-inspector.svd.updateNode",
178+
"when": "view == peripheral-inspector.svd && viewItem == field",
179179
"group": "inline"
180180
},
181181
{
182-
"command": "svd-viewer.svd.updateNode",
183-
"when": "view == svd-viewer.svd && viewItem == fieldWO",
182+
"command": "peripheral-inspector.svd.updateNode",
183+
"when": "view == peripheral-inspector.svd && viewItem == fieldWO",
184184
"group": "inline"
185185
},
186186
{
187-
"command": "svd-viewer.svd.updateNode",
188-
"when": "view == svd-viewer.svd && viewItem == registerRW",
187+
"command": "peripheral-inspector.svd.updateNode",
188+
"when": "view == peripheral-inspector.svd && viewItem == registerRW",
189189
"group": "inline"
190190
},
191191
{
192-
"command": "svd-viewer.svd.copyValue",
193-
"when": "view == svd-viewer.svd && viewItem == field",
192+
"command": "peripheral-inspector.svd.copyValue",
193+
"when": "view == peripheral-inspector.svd && viewItem == field",
194194
"group": "inline"
195195
},
196196
{
197-
"command": "svd-viewer.svd.copyValue",
198-
"when": "view == svd-viewer.svd && viewItem == fieldRO",
197+
"command": "peripheral-inspector.svd.copyValue",
198+
"when": "view == peripheral-inspector.svd && viewItem == fieldRO",
199199
"group": "inline"
200200
},
201201
{
202-
"command": "svd-viewer.svd.copyValue",
203-
"when": "view == svd-viewer.svd && viewItem == registerRW",
202+
"command": "peripheral-inspector.svd.copyValue",
203+
"when": "view == peripheral-inspector.svd && viewItem == registerRW",
204204
"group": "inline"
205205
},
206206
{
207-
"command": "svd-viewer.svd.copyValue",
208-
"when": "view == svd-viewer.svd && viewItem == registerRO",
207+
"command": "peripheral-inspector.svd.copyValue",
208+
"when": "view == peripheral-inspector.svd && viewItem == registerRO",
209209
"group": "inline"
210210
},
211211
{
212-
"command": "svd-viewer.svd.forceRefresh",
213-
"when": "view == svd-viewer.svd && viewItem == registerRW",
212+
"command": "peripheral-inspector.svd.forceRefresh",
213+
"when": "view == peripheral-inspector.svd && viewItem == registerRW",
214214
"group": "inline"
215215
},
216216
{
217-
"command": "svd-viewer.svd.forceRefresh",
218-
"when": "view == svd-viewer.svd && viewItem == register",
217+
"command": "peripheral-inspector.svd.forceRefresh",
218+
"when": "view == peripheral-inspector.svd && viewItem == register",
219219
"group": "inline"
220220
},
221221
{
222-
"command": "svd-viewer.svd.forceRefresh",
223-
"when": "view == svd-viewer.svd && viewItem == registerRO",
222+
"command": "peripheral-inspector.svd.forceRefresh",
223+
"when": "view == peripheral-inspector.svd && viewItem == registerRO",
224224
"group": "inline"
225225
},
226226
{
227-
"command": "svd-viewer.svd.forceRefresh",
228-
"when": "view == svd-viewer.svd && viewItem =~ /peripheral.*/",
227+
"command": "peripheral-inspector.svd.forceRefresh",
228+
"when": "view == peripheral-inspector.svd && viewItem =~ /peripheral.*/",
229229
"group": "inline"
230230
},
231231
{
232-
"command": "svd-viewer.svd.pin",
233-
"when": "view == svd-viewer.svd && viewItem == peripheral",
232+
"command": "peripheral-inspector.svd.pin",
233+
"when": "view == peripheral-inspector.svd && viewItem == peripheral",
234234
"group": "inline"
235235
},
236236
{
237-
"command": "svd-viewer.svd.unpin",
238-
"when": "view == svd-viewer.svd && viewItem == peripheral.pinned",
237+
"command": "peripheral-inspector.svd.unpin",
238+
"when": "view == peripheral-inspector.svd && viewItem == peripheral.pinned",
239239
"group": "inline"
240240
},
241241
{
242-
"command": "svd-viewer.svd.setFormat",
243-
"when": "view == svd-viewer.svd",
242+
"command": "peripheral-inspector.svd.setFormat",
243+
"when": "view == peripheral-inspector.svd",
244244
"group": "navigation"
245245
}
246246
]
247247
},
248248
"configuration": {
249-
"title": "SVD Viewer",
249+
"title": "Peripheral Inspector",
250250
"properties": {
251-
"svd-viewer.svdPathConfig": {
251+
"peripheral-inspector.definitionPathConfig": {
252252
"type": "string",
253-
"default": "svdPath",
254-
"description": "Debug configuration key to use to get the SVD path"
253+
"default": "definitionPath",
254+
"description": "Debug configuration key to use to get the path for the definition file"
255255
},
256-
"svd-viewer.deviceConfig": {
256+
"peripheral-inspector.deviceConfig": {
257257
"type": "string",
258258
"default": "deviceName",
259259
"description": "Debug configuration key to use to get the device name"
260260
},
261-
"svd-viewer.processorConfig": {
261+
"peripheral-inspector.processorConfig": {
262262
"type": "string",
263263
"default": "processorName",
264264
"description": "Debug configuration key to use to get the processor name"
265265
},
266-
"svd-viewer.packAssetUrl": {
266+
"peripheral-inspector.packAssetUrl": {
267267
"type": "string",
268268
"default": "https://pack-content.cmsis.io",
269269
"description": "Base URL for CMSIS pack assets"
270270
},
271-
"svd-viewer.svdAddrGapThreshold": {
271+
"peripheral-inspector.svdAddrGapThreshold": {
272272
"type": "number",
273273
"default": 16,
274274
"multipleOf": 1,
275275
"minimum": -1,
276276
"maximum": 32,
277277
"description": "If the gap between registers is less than this threshold (multiple of 8), combine into a single read from device. -1 means never combine registers and is very slow"
278278
},
279-
"svd-viewer.saveLayout": {
279+
"peripheral-inspector.saveLayout": {
280280
"type": "boolean",
281281
"default": true,
282282
"description": "Save layout of peripheral view between sessions"

src/manifest.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
* terms of the MIT License as outlined in the LICENSE File
66
********************************************************************************/
77

8-
export const PACKAGE_NAME = 'svd-viewer';
9-
export const CONFIG_SVD_PATH = 'svdPathConfig';
10-
export const DEFAULT_SVD_PATH = 'svdPath';
8+
export const PACKAGE_NAME = 'peripheral-inspector';
9+
export const CONFIG_SVD_PATH = 'definitionPathConfig';
10+
export const DEFAULT_SVD_PATH = 'definitionPath';
1111
export const CONFIG_DEVICE = 'deviceConfig';
1212
export const DEFAULT_DEVICE = 'deviceName';
1313
export const CONFIG_PROCESSOR = 'processorConfig';

src/views/peripheral.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export class PeripheralTreeForSession extends PeripheralBaseNode {
250250
this.peripherials.sort(PeripheralNode.compare);
251251
// this.fireCb();
252252
} catch(e) {
253-
this.errMessage = `Unable to parse SVD file ${svdPath}: ${(e as Error).message}`;
253+
this.errMessage = `Unable to parse definition file ${svdPath}: ${(e as Error).message}`;
254254
vscode.debug.activeDebugConsole.appendLine(this.errMessage);
255255
if (vscode.debug.activeDebugConsole) {
256256
vscode.debug.activeDebugConsole.appendLine(this.errMessage);

0 commit comments

Comments
 (0)