You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parse interrupt tables and expose through extension API (#77)
* Extension API: get interrupt table (types and docs)
* Extends parser and API implementation
* Normalize paths through URI conversion, move pathToUri to central location
* Test command: Requires the following in settings.json of workspace
"peripheral-inspector.testCommandsEnabled": true
To provide the peripherals information to Peripheral Inspector on debug session time, you need register your command which is going to construct the peripherals information. The command will receive `DebugSession` object as an input parameter and expects to return array of type `PeripheralOptions[]`.
24
+
To provide the peripherals information to Peripheral Inspector on debug session time, you need register your command which is going to construct the peripherals information.
25
+
The command will receive `DebugSession` object as an input parameter and expects to return array of type `PeripheralOptions[]`.
25
26
26
27
You can find the example command implementation below:
27
28
@@ -41,11 +42,11 @@ class MyExtensionProvider implements api.IPeripheralsProvider {
// Invoke registerPeripheralsProvider method in eclipse-cdt.peripheral-inspector extension api
51
52
// Register 'MyExtensionProvider' for files *.myext
@@ -55,6 +56,10 @@ export async function activate(context: ExtensionContext) {
55
56
}
56
57
```
57
58
59
+
Alternatively, you also use the extension API to extract information from parsed SVD files:
60
+
- See the implementation of the [Print Interrupt Table (Extension API)](../src/test-commands/print-api-interrupt-table.ts) test command for an example how to get the
61
+
interrupt table for an SVD.
62
+
58
63
For further information about the api definitions, review the [Peripheral Inspector API Definitions](../src/api-types.ts).
0 commit comments