while(1){
sci_Init(9600,SCI_NINE);
sci_PutNinth(0x00); /* ninth bit is zero */
sci_PutByte(0xff); /* and data is 0xff */
}
the compiler throws me the following error:
(499)undefined symbol: _sci_PutNinth
None of the source files have been modified, so I don't know whats the bug.
Also i would like to know what this means:
#define sci_PutNinth(bitnine) (TX9D = bitnine?1:0; )
I've not used the HiTech compiler and so am unsure how you are supposed to include standard functions. I did have a quick play and managed to get it to compile by including sci.c
Code:
#include "init.h" // included by C-Wiz
#include <htc.h>
#include "sci.h"
#include "sci.c"
void main(void){
init();
while (1){
sci_Init(19200,SCI_NINE);
//sci_PutNinth(0x00); /* ninth bit is zero */
TX9D=0;
sci_PutByte(0xff); /* and data is 0xff */
}
}
This caused a rather strange error to do with the sci_PutNinth line and so I changed it to write direct.
You should try asking on the HiTech forum to find out the correct way to do this. Or maybe someone here who does use the compiler can throw some light on it.