qpcpp/doxygen/snippets/qf_xstart.cpp

21 lines
717 B
C++
Raw Normal View History

2017-08-29 16:01:46 -04:00
namespace DPP {
extern QP::QXThread * const XT_Thread1;
2017-08-21 18:21:15 -04:00
} // 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 *thread1QueueSto[5];
static uint64_t thread1StackSto[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_Thread1->start(
2020-03-17 21:33:58 -04:00
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
2017-08-21 18:21:15 -04:00
. . .
}