User manual

mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
701
The list of relevant les is stored in the project le (extension .mbpds).
To add a le to the project, click the Add File to Project Icon or press Insert button on your keyboard. Each
added source le must be self-contained, i.e. it must have all necessary denitions after preprocessing.
To remove le(s) from the project, click the Remove File from Project Icon or press Delete button on your
keyboard.
Note: For inclusion of the module les, use the include clause. See File Inclusion for more information.
Project Level Denes:
Project Level Denes (.pld) les can also be added to project. Project level dene les enable you to have denes that
are visible in all source les in the project. A le must contain one denition per line in the following form:
ANALOG
DEBUG
TEST
For example, lets make a project level dene named pld_test. First of all, create a new le with the .pld extension,
pld_test_le.pld.
Next, open it, and write something like this :
PLD_TEST
Once you have done this, save the le. In the Project Manager, add pld_test_le.pld le by right-clicking the
Project Level Denes node.
In the source code write the following:
#IFDEF PLD_TEST
...
#ENDIF
There are number of predened project level denes. See predened project level denes
Related topics: Project Manager, Project Settings, Edit Project