AnsweredAssumed Answered

Showing warning while using ssem and csem function for semaphore lockig and unlocking respectively

Question asked by maddula rajesh on Feb 1, 2018
Latest reply on Feb 12, 2018 by Radek Sestak

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.

 

Thank you,

Rajesh.

Outcomes