Hi dear,
i’m beginner with the Rabbit, and i need your help please.
I would like to know if it is possible to create my own “.lib” file ?
Is it possible to create a project with “.h” files ?
thanks…
[QUOTE=Vincent71;795]Hi dear,
i’m beginner with the Rabbit, and i need your help please.
I would like to know if it is possible to create my own “.lib” file ?
Is it possible to create a project with “.h” files ?
thanks…[/quote]
You have to conform to a template as follows:
/*** BeginHeader yourfunction1, yourfunction2, etc /
void yourfunction1();
void yourfunction2();
/** EndHeader */
void yourfunction1()
{
}
void yourfunction2()
{
}
Then save the file as a “.lib”
Hope this helps.
You should read section 4.21 to 4.23 of the DC 9.50 User Manual - I found it helpful to follow their organization for modules, keeping my help info right together with the relevant code.
One caveat: if you’re writing a library to initialize hardware, you may wish to search through the default library of your module and look for conflicting initializations they included to initialize their prototype boards. I had to modify their library and cut out some stuff when I started up my own boards.