Hi,
Some description:
#if (DEBUG&RESET_DEBUG)-
There is a #defined constant DEBUG which is used to control various debug features in the code. It is a bit vector with each bit representing a different debug feature. These are used to control condition code generation and would usually be disabled in the release version (by setting DEBUG to 0)
HW_CAPABILITY&CAP_RST_IO
The same code is used to build for various versions of the hardware. These have different features which are controlled by
HW_CAPABILITY bit vector in a similar fashion to above.
If you are having trouble understanding #if in general you would be advised to have a look at almost any C programming book for a discussion of preprocessing macros etc.
#pragma DATA_SEG ....
This controls in which segment data are allocated. This is specific to the Codewarrior C compiler. More information can be found in the Codewarrior help files. The USBDM uses it mostly to control BOOT area code & data along with making sure some critical data is allocated in the near segment for fast access.
bye