68 k_eat_ticks( random(100, 1000));
70 Serial.println(
"wr in");
71 k_eat_ticks( random(100, 2500));
74 Serial.println(
"problemmmmmss");
75 Serial.println(
"wr leaving");
90 k_eat_ticks( random(100, 1000));
92 Serial.print(
"rd>> "); Serial.println(n);
93 k_eat_ticks( random(100, 500));
94 Serial.print(
"rd<<"); Serial.println(n);
100 Serial.begin(115200);
109 Serial.println(
"if coming hre then init went wrong");
int k_signal(struct k_t *sem)
Signal a semaphore w eventually task shift.
int ki_semval(struct k_t *sem)
return sem counter value - Its a ki_ fct so intr is not enabled by leave
int k_wait(struct k_t *sem, int timeout)
stand wait on semaphore call with timeout facility
struct k_t * k_crt_task(void(*pTask)(void), char prio, char *pStk, int stkSize)
create a task - only to be called before k_start creates a task and put it in the active Q
struct k_t * k_crt_sem(int init_val, int maxvalue)
change task priority and reinserts it in task Q and do a task shift
int k_init(int nrTask, int nrSem, int nrMsg)
volatile int rdInsideFortest
struct rdWrLockTp rdWrLock1
void rdEnter(struct rdWrLockTp *lock)
void rdLeave(struct rdWrLockTp *lock)
int rdWrLockInit(struct rdWrLockTp *lock)
void wrLeave(struct rdWrLockTp *lock)
void wrEnter(struct rdWrLockTp *lock)