|
|||||||||||||||||||
Technical Support On-Line Manuals µVision User's Guide About µVision User Interface Creating Applications Utilities Debugging Debug Commands ASM ASSIGN BreakAccess BreakDisable BreakEnable BreakKill BreakList BreakSet COVERAGE COVTOFILE DEFINE DIR Display Enter EVALuate EXIT FUNC Go INCLUDE KILL LOAD LOG LogicAnalyze MAP MODE Ostep PerformanceAnalyze Pstep RESET SAVE SCOPE SET SIGNAL SLOG Tstep Unassemble WatchSet WatchKill Debug Functions Simulation Flash Programming Dialogs Example Programs Command Line Appendix |
DEFINEThe DEFINE command creates a symbol of a specified type. Symbols created with the DEFINE command are not placed in the memory space of the CPU. They are symbolic names for values and can be used exactly as any other public symbol; thus, they can hold input or return values of µVision functions.
The identifier is the name of the symbol and must conform to the rules for variables or symbols. The possible symbol types are listed in the following table.
Example >DEFINE CHAR TmpByte /* define TmpByte to be a char value */ >DEFINE FLOAT TmpFloat /* define TmpFloat to be a float value */ >TmpFloat = 3.14159 /* give TmpFloat a value */ >TmpFloat /* display the value of TmpFloat */ 3.14159 DEFINE BUTTONUse this command to add a button to the Toolbox window. A maximum of 16 buttons can be defined. label is the name assigned to the button. cmd is the µVision command assigned to the button. This command is executed when the button is clicked. The DEFINE BUTTON command adds the button to the Toolbox window. Each button receives a button number, which is displayed in the Toolbox window. Use this number to remove the button from the Toolbox window. Example >DEFINE BUTTON "clr dptr", "dptr=0" >DEFINE BUTTON "show main()", "u main" >DEFINE BUTTON "show r7", "printf (\"R7=%02XH\\n\",R7)" Note
| ||||||||||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.