Deleted.
Diff: main.cpp
- Revision:
- 0:9601fa787c8b
- Child:
- 2:27716f570c3d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Feb 15 20:13:34 2011 +0000 @@ -0,0 +1,43 @@ +////////////////////////////////////////////////////////////////////////////// +// Model: pelican.qm +// File: ./main.cpp +// +// This file has been generated automatically by QP Modeler (QM). +// DO NOT EDIT THIS FILE MANUALLY. +// +// Please visit www.state-machine.com/qm for more information. +////////////////////////////////////////////////////////////////////////////// +#include "qp_port.h" +#include "pelican.h" +#include "bsp.h" + +// Local-scope objects ------------------------------------------------------- +static QEvent const *l_pelicanQueueSto[5]; +static QEvent const *l_pedQueueSto[5]; +static QSubscrList l_subscrSto[MAX_PUB_SIG]; +static union { + void *m0; + QEvent m1; +} l_smlPoolSto[10]; // storage for the small event pool + +//............................................................................ +int main(void) { + BSP_init(); // initialize the BSP + QF::init(); // initialize the framework and the underlying RT kernel + // object dictionaries... + QS_OBJ_DICTIONARY(l_smlPoolSto); + QS_OBJ_DICTIONARY(l_pelicanQueueSto); + QS_OBJ_DICTIONARY(l_pedQueueSto); + + QF::psInit(l_subscrSto, Q_DIM(l_subscrSto)); // init publish-subscribe + // initialize event pools... + QF::poolInit(l_smlPoolSto, sizeof(l_smlPoolSto), sizeof(l_smlPoolSto[0])); + + // start the active objects... + AO_Pelican->start(1, l_pelicanQueueSto, Q_DIM(l_pelicanQueueSto)); + AO_Ped ->start(2, l_pedQueueSto, Q_DIM(l_pedQueueSto)); + + QF::run(); // run the QF application + + return 0; +}