Skip to content

Commit

Permalink
ConfigWizard: Add support for negative integers in option range modif…
Browse files Browse the repository at this point in the history
…iers

Negative numbers are supported by using ".." as the separator between
min, max and step instead of "-", making "-" available to signify the sign.

The legacy syntax is preserved for backwards compatibility.
  • Loading branch information
asmellby authored and JonatanAntoni committed Feb 11, 2021
1 parent 979d435 commit 6cd40bb
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions CMSIS/DoxyGen/Pack/src/config_wizard.txt
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ The following table lists the Configuration Wizard Annotations:
#endif
// </e>
\endcode
The example creates an option with the text \token{Round-Robin Timeout [ticks]} and a field to enter values that can range between {1..1000].
The example creates an option with the text \token{Round-Robin Timeout [ticks]} and a field to enter values that can range between [1..1000].
</td>
</tr>
<tr>
Expand Down Expand Up @@ -276,17 +276,32 @@ The following table lists the Configuration Wizard Annotations:
<tr>
<td>\<0-31></td>
<td>no</td>
<td>Value range for option fields.</td>
<td><b>(deprecated<sup>1</sup>, see new range modifier below)</b><br>Value range for option fields. Both endpoints are inclusive.</td>
</tr>
<tr>
<td>\<0-100:10></td>
<td>no</td>
<td>Value range for option fields with step 10.</td>
<td><b>(deprecated<sup>1</sup>, see new range modifier below)</b><br>Value range for option fields with step 10. Both endpoints are inclusive.</td>
</tr>
<tr>
<td>\<0x40-0x1000:0x10></td>
<td>no</td>
<td>Value range in hex format and step 10.</td>
<td><b>(deprecated<sup>1</sup>, see new range modifier below)</b><br>Value range in hex format and step 16. Both endpoints are inclusive.</td>
</tr>
<tr>
<td>\<-32..31></td>
<td>no</td>
<td>Value range for option fields supporting negative numbers. Both endpoints are inclusive.</td>
</tr>
<tr>
<td>\<-50..100:10></td>
<td>no</td>
<td>Value range for option fields with step 10 supporting negative numbers. Both endpoints are inclusive.</td>
</tr>
<tr>
<td>\<-0x40..0x1000:0x10></td>
<td>no</td>
<td>Value range in hex format and step 16 supporting negative numbers. Both endpoints are inclusive.</td>
</tr>
<tr>
<td>\<<i>value</i>=></td>
Expand Down Expand Up @@ -360,6 +375,8 @@ The following table lists the Configuration Wizard Annotations:
</tr>
</table>

<sup>1</sup> Tools are expected to continue support of deprecated features but annotated files shall be updated to the new version.

\section configWizard_codeExample Code Example

You can copy the code into a C-file and check the outcome in the uVision Editor.
Expand Down

0 comments on commit 6cd40bb

Please sign in to comment.