AnsweredAssumed Answered

semaphore instruction for set and clear in MC9S12XEP100

Question asked by rajesh on Feb 5, 2018

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

Outcomes