#include "qpn.h" /* QP-nano API */ #include "bsp.h" /* Board Support Package (BSP) */ #include "pelican.h" /* Application interface */ /*..........................................................................*/ static QEvt l_pelicanQueue[2]; static QEvt l_pedQueue[1]; /* QF_active[] array defines all active object control blocks --------------*/ QActiveCB const Q_ROM QF_active[] = { { (QActive *)0, (QEvt *)0, 0 }, { (QActive *)&AO_Pelican, l_pelicanQueue, Q_DIM(l_pelicanQueue) }, { (QActive *)&AO_Ped, l_pedQueue, Q_DIM(l_pedQueue) } }; /*..........................................................................*/ int_t main (void) { Pelican_ctor(); /* instantiate the Pelican AO */ Ped_ctor(); /* instantiate the Ped AO */ QF_init(Q_DIM(QF_active)); /* initialize the QF-nano framework */ BSP_init(); /* initialize the Board Support Package */ return QF_run(); /* transfer control to QF-nano */ }