qpcpp/doxygen/snippets/qf_xstart.cpp

22 lines
715 B
C++
Raw Normal View History

2017-08-29 16:01:46 -04:00
namespace DPP {
2017-08-21 18:21:15 -04:00
extern QP::QXThread * const XT_Test1;
} // namespace DPP
2017-08-29 16:01:46 -04:00
2017-08-21 18:21:15 -04:00
int main() {
// stacks and queues for the extended test threads
static QP::QEvt const *test1QueueSto[5];
static uint64_t test1StackSto[64];
2017-08-29 16:01:46 -04:00
2017-08-21 18:21:15 -04:00
// start the extended Test1 thread
// start the extended Test1 thread
DPP::XT_Test1->start(
static_cast<uint_fast8_t>(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<QP::QEvt *>(0)); // initialization event
. . .
}