68 k_eat_ticks( random(100, 1000));
70 Serial.println(
"wr in");
71 k_eat_ticks( random(100, 2500));
72 Serial.println(
"wr leaving");
75 Serial.println(
"problemmmmmss");
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);
101 Serial.begin(115200);
110 Serial.println(
"if coming hre then init went wrong");
int k_signal(struct k_t *sem)
Signal a semaphore w eventually task shift.
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)
void rdEnter(struct rdWrLockTp *lock)
void rdLeave(struct rdWrLockTp *lock)
volatile int rdInsideFortest
int rdWrLockInit(struct rdWrLockTp *lock)
struct rdWrLockTp rdWrLock1
void wrLeave(struct rdWrLockTp *lock)
void wrEnter(struct rdWrLockTp *lock)