eXtended (blocking) thread of the QXK preemptive kernel
More...
eXtended (blocking) thread of the QXK preemptive kernel
- Details
- QXThread represents the eXtended (blocking) thread of the QXK kernel. Each extended thread in the application must be represented by the corresponding QXThread instance
- Note
- Typically, QXThread is instantiated directly in the application code. The customization of the thread occurs in the QXThread_ctor(), where you provide the thread-handler function as the parameter.
- Usage
- The following example illustrates how to instantiate and use an extended thread in your application.
while (1) {
BSP_ledOn();
QXThread_delay(100U);
BSP_ledOff();
QXThread_delay(200U);
}
}
int main() {
. . .
QXThread_ctor(&blinky, &main_blinky, 0);
static uint64_t stack_blinky[40];
QXThread_start(&blinky,
5U,
(void *)0, 0,
stack_blinky, sizeof(stack_blinky),
(void *)0);
. . .
return QF_run();
}
eXtended (blocking) thread of the QXK preemptive kernel
QP/C interface including the backwards-compatibility layer.
The documentation for this class was generated from the following file: