You can use inc2h-v3 in two ways.
inc2h-v3 tries to discover where the «.inc» files are located on your hard disk, and displays this (or these) location(s). This command is useful if you don't know where the gputil tool suite has been installed. Basically, this option just uses the locate Unix command, so it may fail.
inc2h-v3 processes all the «.inc» files located in the specified directory and creates the corresponding header files in the current directory. Notice that this command ignores the «.inc» files that do not correspond to a pic18 device.
Note:
The options allow to control what the generated files will contain:
The description of device registers (SFRs) uses structs containing bit fields. This is the standard way to manipulate the registers. The member names of these structs are fully compatible with the identifiers used by Microchip's C18 compiler.
The description of device registers is based on macro definitions. This mode is intended to be used with the explicit bit field syntax allowed by cpik.
The default behavior is to create the two kind of information in the same file. Using only one of this options has the (small) advantage of keeping the resulting files relatively small.
In order to understand the various ways to access the SFRs with cpik, I recommend to read one of the «.h» files generated by inc2h-v3.
0
Texte |
Alain Gibaud 2015-07-09