I defined as follows with MC9S12XEP100 and using main CPU and XGATE.
#define SET_SEMPHR_XGATE(sem_id) while((!_ssem(sem_id))&&(UI_t)(t1msec-Xgsem_timer)<msec1)){};
#define CLR_SEMPHR_XGATE(sem_id) _csem(sem_id)
SET_SEMPHR_XGATE(0)
CLR_SEMPHR_XGATE(0)
But while compiling with IDE 5.1 it showing as follow warnings
warning: C1801 Implicit parameter declaration for '_ssem'
warning: C1801 Implicit parameter declaration for '_csem'
warning: C1420 Result of function call is ignored (showing at CLR_SEMPHR_XGATE(0) )
In example programs also _ssem & _csem are not available.
Please provide solution to eliminate all warnings as soon as possible as it is very urgent
Thank you,
rajesh
Hi rajesh
This is the compiler telling you that this is the first time it has seen the function you are using.
Here is the error info straight out of the compiler manual: C1801: Implicit parameter-declaration [DISABLE, INFORMATION, WARNING, ERROR] Description A function was called without its prototype being declared before.
Example void f(void) { g(); } Tips Prototype the function before calling it.
This error is not a big deal, since you will get a link error if the function causing the error is not ultimately defined somewhere in the project.
If you want to get rid of this error completely, just make sure the compiler sees a prototype before the function is used for the first time.
For example, if the function causing this warning is local to the module, add a function prototype above the main() function.
If it is external to the module, include the .h file for the module where it lives.
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------