71 Serial.println(
"wr in");
72 k_eat_ticks( random(100, 2500));
75 Serial.println(
"problemmmmmss");
76 Serial.println(
"wr leaving");
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);
102 Serial.print(
"RW START");
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_sleep(int time)
let task sleep for a number of milliseconds
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)