qpcpp/doxygen/snippets/qf_xstart.cpp
MMS 34cdcc7929 7.0.0rc1
major release 7.0.0 release candidate 1
2022-04-19 19:23:30 -04:00

21 lines
717 B
C++

namespace DPP {
extern QP::QXThread * const XT_Thread1;
} // namespace DPP
int main() {
// stacks and queues for the extended test threads
static QP::QEvt const *thread1QueueSto[5];
static uint64_t thread1StackSto[64];
// start the extended Test1 thread
// start the extended Test1 thread
DPP::XT_Thread1->start(
1U, // QP prio of the thread
thread1QueueSto, // event queue storage
Q_DIM(thread1QueueSto), // queue length [events]
thread1StackSto, // stack storage
sizeof(thread1StackSto), // stack size [bytes]
nullptr); // initialization parameter
. . .
}