Skip to content

Commit

Permalink
Add new/missing defmt log format options
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Apr 16, 2024
1 parent 2d8cf18 commit 7e2a696
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,10 @@
"description": "If true, the debugger will open an RTT Terminal tab for each of the active channels on the target.",
"default": false
},
"defmtLogFormat": {
"type": "string",
"description": "The default format string to use for decoding defmt logs."
},
"rttChannelFormats": {
"type": "array",
"items": {
Expand All @@ -303,6 +307,10 @@
"type": "number",
"description": "The channel number to which this data format applies. If any active channel numbers are omitted, we will assume the default will be `dataFormat=String', and 'showTimestamps=false'."
},
"channelName": {
"type": "string",
"description": "The channel name to display. Defaults to the name set by the target."
},
"dataFormat": {
"type": "string",
"description": "One of the supported data formats for RTT channels.",
Expand All @@ -318,6 +326,20 @@
],
"default": "String"
},
"mode": {
"type": "string",
"description": "RTT operating mode.",
"enum": [
"NoBlockSkip",
"NoBlockTrim",
"BlockIfFull"
],
"enumDescriptions": [
"The target will add data to the channel only if it fits completely, otherwise it will skip the data.",
"The target will add as much data to the channel as possible, without blocking.",
"The target will block until there is enough space in the channel to add the data."
]
},
"showTimestamps": {
"type": "boolean",
"default": false,
Expand All @@ -327,6 +349,10 @@
"type": "boolean",
"default": true,
"description": "Enable the inclusion of Defmt location information in the RTT output for `dataFormat=Defmt`."
},
"defmtLogFormat": {
"type": "string",
"description": "The default format string to use for decoding defmt logs."
}
}
}
Expand Down Expand Up @@ -455,6 +481,10 @@
"description": "If true, the debugger will open an RTT Terminal tab for each of the active channels on the target.",
"default": false
},
"defmtLogFormat": {
"type": "string",
"description": "The default format string to use for decoding defmt logs."
},
"rttChannelFormats": {
"type": "array",
"items": {
Expand All @@ -464,6 +494,10 @@
"type": "number",
"description": "The channel number to which this data format applies. If any active channel numbers are omitted, we will assume the default will be `dataFormat=String', and 'showTimestamps=false'."
},
"channelName": {
"type": "string",
"description": "The channel name to display. Defaults to the name set by the target."
},
"dataFormat": {
"type": "string",
"description": "One of the supported data formats for RTT channels.",
Expand All @@ -479,6 +513,20 @@
],
"default": "String"
},
"mode": {
"type": "string",
"description": "RTT operating mode.",
"enum": [
"NoBlockSkip",
"NoBlockTrim",
"BlockIfFull"
],
"enumDescriptions": [
"The target will add data to the channel only if it fits completely, otherwise it will skip the data.",
"The target will add as much data to the channel as possible, without blocking.",
"The target will block until there is enough space in the channel to add the data."
]
},
"showTimestamps": {
"type": "boolean",
"default": false,
Expand All @@ -488,6 +536,10 @@
"type": "boolean",
"default": true,
"description": "Enable the inclusion of Defmt location information in the RTT output for `dataFormat=Defmt`."
},
"defmtLogFormat": {
"type": "string",
"description": "The default format string to use for decoding defmt logs."
}
}
}
Expand Down

0 comments on commit 7e2a696

Please sign in to comment.