Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
- Committer:
- t_lark
- Date:
- 2011-04-27
- Revision:
- 0:7225ff529d1c
File content as of revision 0:7225ff529d1c:
//////////////////////////////////////////////////////////////////////////////
// Model: Network.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 "network.h"
#include "bsp.h"
// Local-scope objects -------------------------------------------------------
static QEvent const *l_pelicanQueueSto[5];
static QEvent const *l_pollQueueSto[5];
static QEvent const *l_sense1_N1_Sto[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_pollQueueSto);
QS_OBJ_DICTIONARY(l_sense1_N1_Sto);
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(3, l_pelicanQueueSto, Q_DIM(l_pelicanQueueSto));
AO_Poll ->start(1, l_pollQueueSto, Q_DIM(l_pollQueueSto));
AO_Sense1_N1->start(2, l_sense1_N1_Sto, Q_DIM(l_sense1_N1_Sto));//1st param is priority
QF::run(); // run the QF application
return 0;
}