Next:
6.1 struct Thread
Up:
Dr. Tak's Real Time
Previous:
5.6 TIMER_APP_CALL
6
The API
This RTK implementation includes all the features describe in the concept section. This section describes the API (application program interface) that application programmers should use.
Subsections
6
.
1
struct Thread
6
.
2
struct Queue
6
.
3
extern struct Queue rtkQueues[RTK_NUMQUEUES]
6
.
4
unsigned char rtkSliceScaler
6
.
5
unsigned char rtkSliceCounter
6
.
6
void rtkInitialize(struct Thread *t, struct Queue *q)
6
.
7
void rtkThreadAdd(struct Thread *t, struct Queue *q, void *SP, void (*start)(void *), void *param)
6
.
8
void rtkThreadSuicide(void)
6
.
9
void rtkThreadKill(struct Thread* thread, struct Queue* queue)
6
.
10
struct Tick
6
.
11
struct Tick *rtkTickCountGet(struct Tick *t)
6
.
12
struct Tick *tickAdd4(struct Tick *t, unsigned long u4)
6
.
13
struct Thread *rtkCurrentThread
6
.
14
void rtkThreadSchedule(struct Thread *t, struct Tick *t)
6
.
15
void rtkThreadYield(void)
6
.
16
void rtkSemaphoreInitialize(struct Semaphore *s, char initValue)
6
.
17
void rtkSemaphoreP(struct Semaphore *s)
6
.
18
void rtkSemaphoreV(struct Semaphore *s)
6
.
19
void rtkSemaphoreVNoCS(struct Semaphore *s)
6
.
20
int rtkSemaphoreTryP(struct Semaphore *s)
Copyright © 2008-10-25 by Tak Auyeung