2.10.2. Changes to macros

This sections describes the changes that have been made to macros.

New predefined macros

New cache-related predefined macros are provided.

Using integer variables

You can now substitute the value of an integer variable in a CLI command before the command is executed. The value is converted to hexadecimal. To do this, you must enclose the variable name between the characters ${ and }, for example:

int num;
num = 1;
$FOPEN 150, "C:\\myfiles\\myfile${num}.txt"$; // substitution

The filename in this example is myfile0x1.txt.

See also

Copyright © 2002-2007 ARM Limited. All rights reserved.ARM DUI 0181I