mirror of
https://github.com/QuantumLeaps/qpcpp.git
synced 2025-02-04 06:13:00 +08:00
22 lines
719 B
C++
22 lines
719 B
C++
|
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<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
|
||
|
. . .
|
||
|
}
|