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