Skip to content

Commit 429e062

Browse files
authored
[csolution-rpc] Extend BoardInfo with on-board Debugger info
1 parent 4922dce commit 429e062

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

api/csolution-openapi.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,22 @@ components:
313313
description: Connector type
314314
required:
315315
- adapter
316+
Debugger:
317+
type: object
318+
properties:
319+
name:
320+
type: string
321+
description: Name of on-board debugger
322+
protocol:
323+
type: string
324+
description: Debug protocol (jtag or swd)
325+
clock:
326+
type: number
327+
description: Debug clock speed (in Hz)
328+
required:
329+
- name
330+
- protocol
331+
- clock
316332
Processor:
317333
type: object
318334
properties:
@@ -400,6 +416,8 @@ components:
400416
description: List of supported debug interfaces
401417
items:
402418
$ref: '#/components/schemas/DebugInterface'
419+
debugger:
420+
$ref: '#/components/schemas/Debugger'
403421

404422
BoardList:
405423
allOf:

codegen/src/codegen.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,13 @@ using namespace jsonrpccxx;\n`;
203203
cppType = 'bool';
204204
break;
205205
case 'integer':
206-
case 'number':
207206
tsType = 'number';
208207
cppType = 'int';
209208
break;
209+
case 'number':
210+
tsType = 'number';
211+
cppType = 'unsigned long long';
212+
break;
210213
case 'string':
211214
tsType = 'string';
212215
cppType = 'string';

0 commit comments

Comments
 (0)