11.07.2015 Views

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Error and Warning Messages(181) non-scalar types can’t be converted (Parser)You can’t convert a structure, union or array to another type, e.g.:struct TEST test;struct TEST * sp;sp = test; /* woops -- did you mean: sp = &test; ? */(182) illegal conversion (Parser)This expression implies a conversion between incompatible types, e.g. a conversion of a structuretype into an integer, e.g.:struct LAYOUT layout;int i;layout = i; /* an int cannot be converted into a struct */Note that even if a structure only contains an int, for example, it cannot be assigned to an intvariable, and vice versa.(183) function or function pointer required (Parser)Only a function or function pointer can be the subject of a function call, e.g.:int a, b, c, d;a = b(c+d); /* b is not a function -- did you mean a = b*(c+d) ? */(184) can’t call an interrupt function (Parser)A function qualified interrupt can’t be called from other functions. It can only be called by ahardware (or software) interrupt. This is because an interrupt function has special function entryand exit code that is appropriate only for calling from an interrupt. An interrupt function can callother non-interrupt functions.(185) function does not take arguments (Parser, Code Generator)This function has no parameters, but it is called here with one or more arguments, e.g.:int get_value(void);void main(void){241

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!