From a04152f4bc3abcf1a11ee580c14f8589bb65100b Mon Sep 17 00:00:00 2001 From: Daniel Brondani Date: Thu, 16 Oct 2025 13:20:00 +0200 Subject: [PATCH] [csolution-rpc] Extend `BoardInfo` with on-board `Debugger` info --- api/csolution-openapi.yml | 20 +++++++++++++++++++- codegen/src/codegen.ts | 5 ++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/api/csolution-openapi.yml b/api/csolution-openapi.yml index c4d6a77..c104b01 100644 --- a/api/csolution-openapi.yml +++ b/api/csolution-openapi.yml @@ -1,7 +1,7 @@ openapi: 3.1.0 info: title: csolution rpc - version: 0.0.4 + version: 0.0.5 description: Specification of remote procedure call methods for CMSIS csolution integration license: name: Apache 2.0 @@ -302,6 +302,22 @@ components: description: Connector type required: - adapter + Debugger: + type: object + properties: + name: + type: string + description: Name of on-board debugger + protocol: + type: string + description: Debug protocol (jtag or swd) + clock: + type: number + description: Debug clock speed (in Hz) + required: + - name + - protocol + - clock Processor: type: object properties: @@ -389,6 +405,8 @@ components: description: List of supported debug interfaces items: $ref: '#/components/schemas/DebugInterface' + debugger: + $ref: '#/components/schemas/Debugger' BoardList: allOf: diff --git a/codegen/src/codegen.ts b/codegen/src/codegen.ts index 2df6535..4817fa5 100644 --- a/codegen/src/codegen.ts +++ b/codegen/src/codegen.ts @@ -203,10 +203,13 @@ using namespace jsonrpccxx;\n`; cppType = 'bool'; break; case 'integer': - case 'number': tsType = 'number'; cppType = 'int'; break; + case 'number': + tsType = 'number'; + cppType = 'unsigned long long'; + break; case 'string': tsType = 'string'; cppType = 'string';