Ok I am using the C template in mplabx, and I know nthe mistake is a silly one but I cant find it! say you have two files the H files and the C files.
On the user template h file I put the following
and in the user.c file I put this
its almost a direct copy of the ADC lib with C18, so why am I getting a syntax error on the h file when I try to compile??? I know I have to be missing something really stupid
At the moment I am just starting to learn again, I am slowly altering the ADC lib. Once I have got the hang of the multi file system template, my Idea is to completely redo my LCD lib. I have BIG plans for a really good LCD lib! Nothing like the bog standard ones on the net!! But first I am slowly building up the basics.
On the user template h file I put the following
Code:
int READ_ADC(void);
and in the user.c file I put this
Code:
int READ_ADC(void)
{
return (((unsigned int)ADRESH)<<8)|(ADRESL);
}
its almost a direct copy of the ADC lib with C18, so why am I getting a syntax error on the h file when I try to compile??? I know I have to be missing something really stupid
At the moment I am just starting to learn again, I am slowly altering the ADC lib. Once I have got the hang of the multi file system template, my Idea is to completely redo my LCD lib. I have BIG plans for a really good LCD lib! Nothing like the bog standard ones on the net!! But first I am slowly building up the basics.