|Top Previous Next|
Here are the files that make up a project:
The project file (.TPR) lists all other files in the project, along with their types.
There is also a second project file with the .TPRUSR extension. It remembers the project state (breakpoints, opened files, cursor positions in files, etc.). This file is "expendable". TIDE will (re)create it if this file isn't found.
BASIC and C header files (.TBH and .TH by default). Used for inclusion into other files. Typically contain declarations of global variables, constants, #defines, etc.
The use of header files is optional. A project may contain multiple header files.
Just adding header files to the project tree isn't enough — they won't be compiled in unless you use the include statement. In fact, the header files are in the tree only for your editing convenience, nothing else.
BASIC and C code files (.TBS and .TC by default). Contain the actual source code of your project.
A project must have at least one BASIC or C code file. Mixing BASIC and C within a single project is also OK.
Each code file in the project tree will be compiled in (unless there is a condition preventing this).
HTML files (.HTML by default). Contain HTML pages. These may include blocks of executable code for generating dynamic HTML output (see Working with HTML).
The use of HTML files is optional. You only need them if you want to access your device as a "webserver". A project may have more than one HTML file.
Each HTML file in the project tree will be compiled in (unless there is a condition preventing this).
There are two types of HTML files, as defined by the file type:
Resource files. These are added into the .TPC binary without any modification.
Each resource file in the project tree will be added to the compiled binary (unless there is a condition preventing this).
Types of resource files: