QP/C 6.9.0
qxk_pkg.h
Go to the documentation of this file.
1 
40 #ifndef QXK_PKG_H
41 #define QXK_PKG_H
42 
44 void QXK_start_(void);
45 
47 void QXK_stackInit_(void *thr, QXThreadHandler const handler,
48  void * const stkSto, uint_fast16_t const stkSize);
49 
51 void QXK_threadRet_(void);
52 
58 };
59 
61 void QXThread_block_(QXThread const * const me);
62 
64 void QXThread_unblock_(QXThread const * const me);
65 
67 void QXThread_teArm_(QXThread * const me,
68  QSignal sig,
69  uint_fast16_t const nTicks);
70 
72 bool QXThread_teDisarm_(QXThread * const me);
73 
85 #define QXK_PTR_CAST_(type_, ptr_) ((type_)(ptr_))
86 
87 #include "qf_pkg.h" /* QF package-scope interface */
88 
89 #endif /* QXK_PKG_H */
90 
QXK_threadRet_
void QXK_threadRet_(void)
called when a thread function returns
Definition: qxk_xthr.c:693
QXK_start_
void QXK_start_(void)
internal QXK function to start multitasking (typically in assembly)
QXK_DELAY_SIG
@ QXK_DELAY_SIG
Definition: qxk_pkg.h:55
QXK_Timeouts
QXK_Timeouts
timeout signals
Definition: qxk_pkg.h:54
QXThread_teArm_
void QXThread_teArm_(QXThread *const me, QSignal sig, uint_fast16_t const nTicks)
internal function to arm the private time event for a given thread.
Definition: qxk_xthr.c:563
QSignal
uint16_t QSignal
QSignal represents the signal of an event.
Definition: qep.h:128
QXThread_unblock_
void QXThread_unblock_(QXThread const *const me)
internal function to unblock (resume) a given extended thread.
Definition: qxk_xthr.c:545
QXK_QUEUE_SIG
@ QXK_QUEUE_SIG
Definition: qxk_pkg.h:56
qf_pkg.h
Internal (package scope) QF/C interface.
QXThread_teDisarm_
bool QXThread_teDisarm_(QXThread *const me)
internal function to disarm the private time event for a given thread.
Definition: qxk_xthr.c:609
QXThread
eXtended (blocking) thread of the QXK preemptive kernel
Definition: qxthread.h:71
QXK_SEMA_SIG
@ QXK_SEMA_SIG
Definition: qxk_pkg.h:57
QXThreadHandler
void(* QXThreadHandler)(QXThread *const me)
Pointer to a thread-handler function.
Definition: qep.h:216
QXThread_block_
void QXThread_block_(QXThread const *const me)
internal functin to block (suspend) a given extended thread
Definition: qxk_xthr.c:529
QXK_stackInit_
void QXK_stackInit_(void *thr, QXThreadHandler const handler, void *const stkSto, uint_fast16_t const stkSize)
initialize the private stack of a given QXThread
Q_USER_SIG
@ Q_USER_SIG
first signal that can be used for user signals
Definition: qep.h:658
uint_fast16_t
unsigned int uint_fast16_t
fast at-least 16-bit unsigned int
Definition: 16bit/stdint.h:38