Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion api/csolution-openapi.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -389,6 +405,8 @@ components:
description: List of supported debug interfaces
items:
$ref: '#/components/schemas/DebugInterface'
debugger:
$ref: '#/components/schemas/Debugger'

BoardList:
allOf:
Expand Down
5 changes: 4 additions & 1 deletion codegen/src/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down